日期:2014-05-16  浏览次数:20338 次

Oracle 10g 下 列名是关键字

今天发现SM中有个表的列名是NUMBER, 晕倒, 是关键字, 自己试了试,解决方法如下:

?

?

select * from problem1m1 t where "NUMBER"='IM10056'

?

如果是sql server 可以用select * from problem1m1 t where [NUMBER]='IM10056'

?

?

1 楼 dragoo1 2011-01-16