im trying to run this query with multiple table_name, column_name, int1, and int2.
UPDATE table_name
SET column_name = REPLACE(column_name, "int1", "int2")
WHERE column_name like "int1%"
Is there a simple way to create a list and run a for loop like in other languages?
Here is a simple python script of basically what I would like to do in SQL:
list1 = ["foo", "bar"]
list2 = ["foo2", "bar2"]
list3 = [1, 2]
list4 = [3, 4]
for i in len(list1):
print(list1[i],list2[i],list3[i],list4[i])
Im sorry I am very new to SQL, and could not find exactly something like this elsewhere.
Thanks for any advice.