Hello. I am trying to create a new table as the union of two existing tables via an R DBI connection, but am receiving an error message that I cannot seem to fix. Any advice to help correct the syntax would be greatly appreciated.> dbGetQuery(mdb,+ "CREATE TABLE nis_0411 AS+ Select * FROM nis_0407+ UNION ALL+ Select * FROM is_0811")Error in .local(conn, statement, ...) :Unable to execute statement 'CREATE TABLE nis_0411 ASSelect * FROM nis_0407UNION ALLSelect * FROM nis_0811'.Server says 'syntax error, unexpected SCOLON, expecting WITH in: "create table nis_0411 asselect * from nis_0407union allselect * from nis_"' [#42000].CheersCharlesCharles DiMaggio, PhD, MPHDirector of Injury ResearchDepartment of SurgeryNew York University School of Medicine462 First Avenue, NBV 15New York, NY 10016-9196Direct Line: 516.308.6426 (preferred)Office: 212.263.3202
_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list