blackbug
Dec 15th 2005, 3:13 pm
I'm trying to remember how insert a row into a database where one of the columns is a set. I'm trying:
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', ('service2', 'service1'))
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', VALUES('service2', 'service1'))
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', SET('service2', 'service1'))
And anything else I can invent :)
I've set the right values for the column when defining the table.
But I can't remember how to do it. Someone put me out of my misery, please!
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', ('service2', 'service1'))
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', VALUES('service2', 'service1'))
INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', SET('service2', 'service1'))
And anything else I can invent :)
I've set the right values for the column when defining the table.
But I can't remember how to do it. Someone put me out of my misery, please!