关于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
相关问答:
PB中开发的。
DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)
string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+&q ......
表A
Sup_code st_sup_code buy_code buy_code1
1001 400 &nbs ......
请问各位,如何将SQl中,某字段中的值横向展开呢,
CASE WHEN
具体问题具体分析,看你要怎么展开
姓名 科目 成绩
张三 英语 90
李四 英语&nb ......
table1
名称 入库数
CT机 3
CT机 5
X光机 4 ......
情况是一张表(T)内,每条记录有一个类型字段,当按类型字段来分类查询并分页处理时
(表T内的类型是指向另一张类型表的一个ID值)
我想到了两种方式;
环境:PHP+MYSQL
1、PHP 先执行一条查询得到 ......