Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sDatabase = "mytable"文字列形式であると仮定する
sDatabase = "mytable"
cmd.CommandText = "INSERT INTO test.target SELECT * FROM '" & sDatabase & "'.source"
このクエリでエラーが発生します。
テーブル名に''を使用しないでください。
cmd.CommandText = "INSERT INTO test.target SELECT * FROM " & sDatabase & ".source"