我的数据库中有一个名为tbl_images的表
Name |Owner |Type |Created_datetime
TBL_Images |dbo |user table |2013-06-18 04:24:01.847
此表包含列 - SalesOrganization
我仍然得到如下错误:
Msg 207, Level 16, State 1, Line 1
Invalid column name 'SalesOrganization'.
QUERY
Select count(*) tbl_images WHERE SalesOrganization = '5000'
TABLE DESIGN SCREENSHOT:
答案 0 :(得分:1)
您的查询中缺少from
子句
Select count(*) from tbl_images WHERE SalesOrganization = '5000'