G
Guest
Hi,
The tables I imported have spaces in the field names and this has cause the
following querry to fail:
SELECT q.[Title], q.[Company] INTO AgtUnion
FROM [SELECT Title, Company FROM Agt95758
UNION
SELECT Title, Company FROM Agt95831]. AS q;
The querry above fail when "Title" is replaced by say, "First Name" which
contains a space.
My questions are:
(i) Can this problem be avoided by modifying the syntax in the above SQL?
(ii) If not, then what is the simplest way to (programmatically) handle the
spaces in the field names as I import data into tables?
Thanks.
David
The tables I imported have spaces in the field names and this has cause the
following querry to fail:
SELECT q.[Title], q.[Company] INTO AgtUnion
FROM [SELECT Title, Company FROM Agt95758
UNION
SELECT Title, Company FROM Agt95831]. AS q;
The querry above fail when "Title" is replaced by say, "First Name" which
contains a space.
My questions are:
(i) Can this problem be avoided by modifying the syntax in the above SQL?
(ii) If not, then what is the simplest way to (programmatically) handle the
spaces in the field names as I import data into tables?
Thanks.
David