mysqls
mysqls copied to clipboard
多表查询报错
sql.table({'node_table1': 'a', 'node_table2': 'b'}).where('id=1').select()
完全复制的示例,运行报错:(node:23224) UnhandledPromiseRejectionWarning: TypeError: opt.indexOf is not a function
在补充一个: mysql.union(mysql.table("table_1").select()).union(mysql.table("table_2").select()).select(), 这个运行的结果是:((SELECT * FROM table_1 ))