请问各位高手,比如现在有个student表,里面有studentno,name,sex,score,
现在字段没内容,刚建好的表,然后我记得有个语句可以查出,表字段,
就是查出来的内容是“字段”,这个语句是啥呢???

解决方案 »

  1.   

    select name from syscolumns where id=object_id('student')
      

  2.   

    我用mysql的  以上好像执行出错!!
      

  3.   

    SELECT  column_name from information_schema.columns WHERE table_name = ‘student’
      

  4.   

    大妹子你说清楚呀
    select  column_name from information_schema.columns where table_name = '表名'
      

  5.   

    MYSQL还真不知道,
    MSSQL就知道
    select name from syscolumns where id=object_id('student')