-1

I migrated from Access to Mysql.Codes for vb6.

mobjCmd.CommandText = "INSERT INTO The123 SELECT The1 AS FirstName FROM schedule"
Set mobjRst = mobjCmd.Execute

And this query is not working in Mysql.

4

2 回答 2

0

您需要为The123表格指定列

mobjCmd.CommandText = @"INSERT INTO The123 (FirstName) SELECT The1 AS FirstName FROM schedule"
Set mobjRst = mobjCmd.Execute
于 2013-03-26T04:39:15.053 回答
0
mobjCmd.CommandText = "INSERT INTO The123 VALUES("yOUR VALUES")"
MOBJCMD.COMMANDTEXT = "SELECT The1 AS FirstName FROM schedule"
Set mobjRst = mobjCmd.Execute

你必须划分两个 CMD

于 2013-03-26T04:34:25.600 回答