Syntax for a static GUID in Jet SQL

M

misfit815

I'm trying to execute an INSERT query with a static GUID value, but
can't get the syntax right. Assuming that Col1 of Table1 is a GUID
field, what's the correct form of the following:

INSERT INTO Table1 (Col1, Col2... ColN)
SELECT '12345678-9ABC-DEF0-1234-56789ABCDEF0', Col2... ColN
FROM Table2

I've tried various combinations of ', ", #, {}... and can't seem to
find the answer. Thanks.

J
 

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