mysql - Error Code: 1066. Not unique table/alias: 'circle_call_prefixes' -
i trying update tables using inner join
but keep getting error
error code: 1066. not unique table/alias: 'circle_call_prefixes'
this code:
update circle_call_destinations , circle_call_prefixes inner join circle_call_prefixes on circle_call_prefixes.circle = circle_call_destinations.destination set circle_call_prefixes.prefix = '1' , circle_call_destinations.circle = '2' circle_call_destinations.autono = '20'
thanks :)
it's old question, had same error...
you should remove ", circle_call_prefixes" in first line.
the right syntax is
update t1 inner join t2 on t1.a = t2.a set .....
there no t2 between update , inner.
Comments
Post a Comment