Hi all i need to update some iframe values in my videos table, embed column. Can I achieve this with this kind code below ? I tried already but i got syntax errors. Please help me. here is the code
type of column embed is text.
UPDATE videos
SET embed RAND('<iframe src="http://example.com" height="504" width="921"
frameborder="0" scrolling="no">
</iframe>',
'<iframe src="http://example.com" height="504" width="921"
frameborder="0" scrolling="no">
</iframe>',
'<iframe src="http://example.com height="504" width="921"
frameborder="0" scrolling="no">
</iframe>')
WHERE id in(5727,5723,5665)
Here is the error code; #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RAND ('