SQL 语句问题


DELETE a,b,c FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id)
WHERE a.post_type = 'revision'

你好,我想问下 他这个SQL是删除3个字段吗?还是把符合条件的数据都删掉了??

sql db mysql oracle

世界D末日 10 years, 1 month ago

删除数据,删除字段不会是 DELETE 的,而是 ALTER

右代宫懔心 answered 10 years, 1 month ago

Your Answer