I have a python variable (type unicode), which holds a query statement:
CREATE TABLE afg_temp (tadm1_code INTEGER NOT NULL, tadm1_name VARCHAR(10) NOT NULL, test VARCHAR(4));
I need to replace all the values in each VARCHAR occurence with 254. Initially I thought it would be enough to use the replace() function but this won't work as the numbers in the parenthesis are random.
Is there a way to do this using regex?