关于SQL的update语句的问题?
sql = "update 股票 set [货币资金]=" & hb & ",[长期负债]=" & fz & ",[总股本]=" & zgb & " where [代码]='000010' "
我改成了
b="000010"
sql = "update 股票 set [货币资金]=" & hb & ",[长期负债]=" & fz & ",[总股本]=" & zgb & " where [代码]=b "
但是貌似什么地方出错了,一直不能通过,请高手指教
以下供參考:
VB code:
sql = "update Info set OutPutDateTime ='" & Now & "',OutStorageUser='" & UCase(loginUser) & "',OutPutState='" & PassProduct.Caption & "',Flag='" & 1 & "' " & "where Barcode= '" & Barcode.Text & " '&q
相关问答:
with adod_dict do
begin
close;
commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......
sql2005
select *from v_ddxx where d_sfsc='0' and (g_ssbm='1001' or g_ssbm='1002') and (xxf>0 and xxfwzf <>0 ),执行速度慢的要死,但是如果把(xxf>0 and ......
表A
Sup_code st_sup_code buy_code buy_code1
1001 400 &nbs ......
情况是一张表(T)内,每条记录有一个类型字段,当按类型字段来分类查询并分页处理时
(表T内的类型是指向另一张类型表的一个ID值)
我想到了两种方式;
环境:PHP+MYSQL
1、PHP 先执行一条查询得到 ......
我数据库是MSSQL的,昨天所有的表被注入JS脚本代码,有个不明白的地方来问问大家
我发现有些表我根本没使用,也没有入库的ASP页面和语句,它是咱个注入的呢?
貌似select语句是可以嵌套的吧?
可能是where ......