string str = @"select a.workordertypeid,a.deallevel,a.filltime,a.wishdate,a.modelid,b.coursename,c.username from t_workorder a
求教这句字符串前面的@表示什么意思?
@ 符号加在字符串前面表示其中的转义字符不被处理
例如: string path = @"D:\test\test.txt";
@ 符号加在字符串 ......
请教Sql #table ##table 和declare @tb table 的区别
##table 是全局的
#table为临时变量
##table为全局变量
Declare @tb table,这个嘛,有人说用临时表的效率快点,偶也弄不明白
前者是表
後者是變量
问题相应的这么快 谢谢
引用
#table为临时变量
##table为全局变量
Declare ......
StrSQL = "select A.ID from Club_Basic_Info A left join Club_Item_Info B on A.Club_ID=B.Club_ID"
这句sql 在sqlserver2005 运行能显示记录 但放到asp代码中运行 却没有记录 这是什么原因
现象描述清楚了 能把局部的asp代码贴一下吗 要不然没法找到问题
StrSQL = "select A.I ......
传递参数:
站点名称、站点简称、站点全拼,都是以‘-’分割连接,如:
新区分公司-工业园二号门-生活中心-行创四路-行创三路-工业园一号门,
xqfgs-gyyehm-shzx-xcsl-xcsl-gyyyhm,
xinqufengongsi-gongyeyuanerhaomen-shenghuozhongxin-xingchuangsilu-xingchuangsanlu-gongyeyuanyihaomen
要求: ......
我的表中有这么个字段,格式为:A@@B@@C
我的要求将这个字段的值变为多条,即:1.A
2.B
&n ......
SQL code:
select * from table1 where column1 NOT IN (SELECT column1 from table2)
请问这样的语句有没有更好的写法
Up!
SQL code:
select * from table1 t where NOT exists (SELECT 1 from table2 where column1=t.column1)
引用
SQL codeselect*from table1 twhereNOTexists (SELECT1from ......