以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  在SQL语句中,取变量为列值,该怎么写?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=179066)

--  作者:czy66ds
--  发布时间:2022/8/5 11:03:00
--  在SQL语句中,取变量为列值,该怎么写?
例如
--  作者:czy66ds
--  发布时间:2022/8/5 11:04:00
--  
sele ct  user.name as 用户 from {表1}
--  作者:有点蓝
--  发布时间:2022/8/5 11:09:00
--  
dim s as string = "select  \'" & user.name & "\' as 用户,* from {表1}"
msgbox(s)