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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -