php - How to use an update query within a select query in sql -
in select query getting field values of respective field names want show. now, problem how can use update query update field value of field name 'personnum' or 'clearingnum'.
select * ( select date_format( from_unixtime( submit_time ) , '%b %e, %y %l:%i %p' ) submitted, max( if( `field_name` = 'your-email', field_value, null ) ) 'your-email', max( if( `field_name` = 'your-id', field_value, null ) ) 'your-id', max( if( `field_name` = 'personnum', field_value, null ) ) 'personnum', max( if( `field_name` = 'clearingnum', field_value, null ) ) 'clearingnum', max( if( `field_name` = 'kontonum', field_value, null ) ) 'kontonum' wp_cf7dbplugin_submits `form_name` = 'uppgifter form' group submit_time order submit_time desc ) wpcf7_fetched_data `your-id` = 4
Comments
Post a Comment