--
You received this message because you are subscribed to the Google Groups "SQL Server" group.
To post to this group, send email to sql-s...@googlegroups.com.
To unsubscribe from this group, send email to sql-server+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sql-server?hl=en.
--
You received this message because you are subscribed to the Google Groups "SQL Server" group.
To post to this group, send email to sql-s...@googlegroups.com.
To unsubscribe from this group, send email to sql-server+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sql-server?hl=en.
To insert multiple records at one time, they must be in the form of a result
set from another query. Here, I've used a 'UNION ALL' clause to create a
multi-record result set. Hope this helps...
CREATE TABLE estados (sigla VARCHAR(MAX), nome VARCHAR(MAX))
INSERT INTO estados (sigla, nome)
SELECT 'AC' AS sigla, 'Acre' AS nome UNION ALL
SELECT 'AL', 'Alagoas' UNION ALL
SELECT 'AM', 'Amazonas'
DROP TABLE estados
Greg Grater
Fred/
--