Davy Obdam <[EMAIL PROTECTED]> wrote:
> I am trying to run this query:
> 
> UPDATE table1, table2 SET table1.periode = table.periode WHERE table1.id 
> = 3 AND SUBSTRING_INDEX( table1.name, '.', - 1 ) = table2.name
> 
> But i keep getting the same error message
> 
> You have an error in your SQL syntax near '
> table2 SET table1.periode = table2.periode WHERE table1.id = 3 AND 
> SUBSTRIN' at line 1
> 
> Is it possible to use a SUBSTRING_INDEX in a update query, or what i am 
> i doing wrong?
> 

What version of MySQL server do you use? Multi-table updates is supported only since 
4.0.4 version.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to