我们有一个表auth_group_access,那么如何使用呢?
在使用M方法时,对于带下划线的表名,可以采用如下方法。
M('AuthGroupAccess');
对应sql语句SQL: SHOW COLUMNS FROM `auth_group_access` [ RunTime:0.00919...
复制代码 代码如下: public string GetExcelFirstTableName(string excelFileName) { string tableName = null; if (File.Exists(excelFileName)) { using (OleDbConnection conn = new OleDbConnection("P...
desc 表名; show columns from 表名; describe 表名; show create table 表名;
use information_schema select * from columns where table_name='表名';
顺便记下: show databases; 也可以这样
use in...