"Ligaya Turmelle" <[EMAIL PROTECTED]> wrote:
> Can I use LIKE in an UPDATE statement when it is not in the WHERE clause?
> I only know what the attribute name will end with (may be prefixed).
>
> Example:
> UPDATE table SET LIKE '%donut' = valueColumn1 WHERE condition1 = value1;
>
Find column names ending with 'donut' with:
SHOW COLUMNS FROM table LIKE '%donut';
Then put column names to UPDATE statement.
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Egor Egorov
/ /|_/ / // /\ \/ /_/ / /__ [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]