Guys, been left in the lurch since the developer responsible has buggered off on holiday for five weeks. I need to get this done as soon as possible but I know very little about SQL.
Here's the scenario. Posgtresql database and one of the tables (shop_upgradecode), has this structure;
id integer
NOT NULL
nextval('shop_upgradecode_id_seq'::regclass)
product_id integer
NOT NULL
code character varying(500)
NOT NULL [uniq]
is_blacklisted boolean
NOT NULL
was_used boolean
NOT NULL
product_id will be 17
code is a list of 18,000 numbers like this 71938-47183-31335-71295-33203
is_blacklisted will be false
was_used will be false
What I have is a list of the code numbers that I need to get into the table but I haven't got a clue where to start. I would seriously appreciate any help to get this job done, kinda crucial to our operation.
Here's the scenario. Posgtresql database and one of the tables (shop_upgradecode), has this structure;
id integer
NOT NULL
nextval('shop_upgradecode_id_seq'::regclass)
product_id integer
NOT NULL
code character varying(500)
NOT NULL [uniq]
is_blacklisted boolean
NOT NULL
was_used boolean
NOT NULL
product_id will be 17
code is a list of 18,000 numbers like this 71938-47183-31335-71295-33203
is_blacklisted will be false
was_used will be false
What I have is a list of the code numbers that I need to get into the table but I haven't got a clue where to start. I would seriously appreciate any help to get this job done, kinda crucial to our operation.
Comment