Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert to first table if field A equals field B from a second table using sql

UPDATE Table_1 SET Field_X = (SELECT Field_Y FROM Table_2 WHERE Table_1.Field_A=Table_2.Field_B LIMIT 1)
 
PREVIOUS NEXT
Tagged: #insert #table #field #A #equals #field #B #table #sql
ADD COMMENT
Topic
Name
8+3 =