Debt Consolidation - Find jobs - Creative Electronics - Winunited Bonuses - Watch Anime Online

PDA

View Full Version : Inserting a row with a set.


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!

l234244
Dec 15th 2005, 3:48 pm
What exactly is the SET command doing, determining the length of characters before wrapping text?

Sham
Dec 22nd 2005, 9:02 pm
I think he means list of values?....

blackbug
Dec 23rd 2005, 12:55 am
:) Thanks. Yeah.

I worked it out now.

Something along the lines of:

INSERT INTO company (name, url, services_offered)
VALUES('company1', 'companyurl1', 'service2,service1')