use SQL to delete rows from 2 table DBeaver - Stack Overflow

i have 2 tables:books b1price p1i want to remove rows from both tables using the following query:DELE

i have 2 tables:

  • books b1
  • price p1

i want to remove rows from both tables using the following query:

DELETE books FROM price p1 JOIN books b1
ON b1.BOOK_ID = p1.ID WHERE p1.ISBN IS NOT NULL AND p1.VALUTA = 'yen'
AND b1.YEAR BETWEEN 2011 AND 2014

but i get the error:

An unexpected token "price" was found following "books FROM" expected token may include "JOIN"

I think i am following the correct order.

DELETE (choose 1 of the 2 tables)

then FROM(the other table)

followed by JOIN(the first table again)

what am i doing wrong?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744027239a4545906.html

相关推荐

  • use SQL to delete rows from 2 table DBeaver - Stack Overflow

    i have 2 tables:books b1price p1i want to remove rows from both tables using the following query:DELE

    9天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信