Question : I need a wicket sql script/query

Ok, I have an sql database.

Two tables.

If Table1/Field2 matches Table2/Field1, insert Table1/Field5 into Table2 Field5

basically, i'm adding image filenames to posts. I'll also need img src codes wrapping field table2/field5 followed by a <br>. I'm more concerned about getting the images into the posts tho.

Answer : I need a wicket sql script/query

What do you mean add to the data? do you mean add the field field_story_image_alt to what is in post_content? I so, then use this:

Update wp_posts set post_content=Concat(post_content,(Select  field_story_image_alt from forums_drupal_content_field_story_image where forums_drupal_content_field_story_image.nid=wp_posts.ID LIMIT 1))

Random Solutions  
 
programming4us programming4us