DESC 表名;SHOW COLUMNS FROM 表名;

解决方案 »

  1.   

    看所有表的信息: show table status from  数据库名;
    看单作表的信息: show columns from 数据库名.表名.
      

  2.   

    describe table
    也可以得到信息.
      

  3.   

    desc +表名称 
    我刚刚测试过可以用
      

  4.   

    SHOW CREATE TABLE tablename;
      

  5.   

    那能否把返回的结果集象SELECT那样灵活的调用呢?
      

  6.   

    describe tablename
    SHOW CREATE TABLE tablename;可以象select一样调用的※……
      

  7.   

    我的意思是象SELECT那样,如
    select field+' '+type+',' from (desc tablename)生成我想要的SQL信息