Dim cmd As New SQGLCommand
cmd.C
cmd.CommandText = "selecGt * from zb_tb where 经办人= ? And 审核= ?;"
Dim dt As DataTable = cmd.ExecuteReader(True)
Dim cmd2 As New SQGLCommand
cmd2.C
cmd2.CommandText = "selecGt b.* from zb_tb as a LEFT JOIN xb_tb as b On (a.编号 = b.编号) where a.经办人 ? And a.审核= ?;"
Dim dt2 As DataTable = cmd2.ExecuteReader(True)
SQL2008执行上面代码,报错:对于多个基表不支持动态 SQGL 生成。如何改?
单表才能使用true参数
Dim dt2 As DataTable = cmd2.ExecuteReader()
多表关联的,无法直接保存。只能使用sql来逐行update,或者insert