表a
编号 学习 零工 装车
1 2000 2600 3000
表b
编号 方式 时间 工资 单号 姓名
1 学习 9 001 aa
1 零工 10 001 bb
以上表的形式,用
Dim cmd As New SQLCommand
cmd.C
Dim cur As String = "pg0000021467"
cmd.CommandText = "u pdate 表b SET 工资 = 时间 * b.('"& a.方式 &"')/30/9 from 表b as a left join (s elect * from 表a) As b on a.编号 = b.编号 where 单号 = '001‘”
cmd.ExecuteNonQuery()
请教版主,标红的部分,应该怎么写