做动态语句或存储过程可以实现,直接这样写,不行。你想干啥,说来听听,我觉得ACCESS好像可以,你是不是..?

解决方案 »

  1.   

    对方的服务器是sql数据库的,我猜不出字段名 :(
    那你能告诉我 sql中注释是怎么写的吗?c里面是//
    sql里面是什么??
      

  2.   

    select * from syscolunms where id(select id from sysobject where name='你的表名' and xtype='u')
    列出表的所有字段及属性
      

  3.   

    select * from 某表 
    不行吗?
      

  4.   

    select a.name 列 from syscolumns a,sysobjects d where a.id=d.id and d.xtype='U' and d.name='你的表名'
    用这个来看列名
      

  5.   

    select COL_NAME(OBJECT_ID('表名'),2) 表名的第二个列的列名