access向sql server转变的问题
下面这句access数据库的sql语句转变成sql server数据库的sql语句,劳烦大家帮忙.
tmpsql = "select * from t_A Ta,t_B ,t_C where customer='" & Trim(LabCustomer.Caption) & "' and SEX='" & Trim(CobSEX.Text) & "' and from t_D.customerID=t_B.id and T_A.SEXid=t_E.id"
还有在access中的AutoNumber这一数据类型在sql server中该用什么??
问题点数:20、回复次数:3Top
1 楼lsj1982(爱上你不是我的错)回复于 2004-08-04 09:59:53 得分 5
numeric,decimal都可以。字段设为标志就行。Top
2 楼guhuili(泡泡)回复于 2004-08-04 10:21:02 得分 5
select * from t_A Ta,t_B ,t_C where customer='" & Trim(LabCustomer.Caption) & "' and SEX='" & Trim(CobSEX.Text) & "' and t_D.customerID=t_B.id and T_A.SEXid=t_E.idTop
3 楼zhoutler(一代程序巨浆--用浆糊粘贴别人代码巨厉害)回复于 2004-08-04 16:08:19 得分 10
AutoNumber->Integer(种子,深度 1)
关于Boolean字段兼容:sql认为True 1,Flase 0,而Access认为True -1,False 0,要注意。
还有就是Union的条件问题也要注意。Top




