控制器中添加DB类才可以操作数据库表中的数据

必须使用DB:  use DB;
原文地址:https://www.cnblogs.com/yuwensong/p/4766338.html