mysqls icon indicating copy to clipboard operation
mysqls copied to clipboard

多表查询报错

Open Lkx2217 opened this issue 2 years ago • 1 comments

sql.table({'node_table1': 'a', 'node_table2': 'b'}).where('id=1').select()

完全复制的示例,运行报错:(node:23224) UnhandledPromiseRejectionWarning: TypeError: opt.indexOf is not a function

Lkx2217 avatar Oct 14 '22 16:10 Lkx2217

在补充一个: mysql.union(mysql.table("table_1").select()).union(mysql.table("table_2").select()).select(), 这个运行的结果是:((SELECT * FROM table_1 ))

Lkx2217 avatar Oct 14 '22 16:10 Lkx2217