mysql - getting error #1242 while deleting data from the table -


i trying delete data table , query below:

delete mybadge uid=5 , badge_name=(select concat(tag_name,'-beginner') tag,post_tags post_tags.tag_id=tag.tag_id); 

i getting 5 records select statement, want delete 5 records.

use- 'in' keyword instead of '=' sign

delete mybadge uid=5 , badge_name in (select concat(tag_name,'-beginner') tag,post_tags post_tags.tag_id=tag.tag_id); 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -