how does the INSERT INTO SQL work??

G

Guest

I have a similar post about 8 posts down,

I think the answer has to do with the INSERT INTO statement.
I don't know how to use it though =( =( =( & I can't figure it out to save
my life.

here's my guess on it,
INSERT INTO TableName(Field2, Field3, Field4) VALUES (abc,def,123)

that'll create a new row in the table,
Field1 (column A) will be blank
Field2 = abc
Field3 = def
Field4 = 123
Field5 = (blank)

?

Thanks~
 
D

Douglas J. Steele

You're almost bang on. The only problem is that the SQL you presented will
fail, because you don't have quotes around the strings. You need:

INSERT INTO TableName(Field2, Field3, Field4) VALUES ('abc','def',123)

Other than that, your guess as to what it would do is correct.
 
G

Guest

thx so much doug~

Douglas J. Steele said:
You're almost bang on. The only problem is that the SQL you presented will
fail, because you don't have quotes around the strings. You need:

INSERT INTO TableName(Field2, Field3, Field4) VALUES ('abc','def',123)

Other than that, your guess as to what it would do is correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top