日期:2014-05-17  浏览次数:21066 次

这句sql语句再asp里面如何写啊
update   表名   set
table_id=(select   isNull(cast(max(table_id)   as   bigint)+1,convert(varchar(8),getdate(),112)   +   '001 ')
from   表名
where   left(table_id,8)=convert(varchar(8),getdate(),112))
where   id=1


还有能不能说下写这种长语句的时候需要注意的地方和规则


------解决方案--------------------
在asp中也这样写啊,只是一些传进来的变量要处理一些如
update table set name= ' "&name1& " '
这里的 name1就是你传过来的变量, 如果没有变量,哪就和你现在的一样