Microsoft
Software
Hardware
Network
Question : Insert Into
i have got a table that I created: DEPARTMENTS
This table has: DepartmentID, DepartmentName, ManagerID and LocationID
I am trying to instert 3 additional departments; Sales, Shipping and Accounts.
Insert Into Departments
(DepartmentName)
Values ('Sales', 'Shipping', 'Accounts')
After I Execute I get:
Msg 110, Level 15, State 1, Line 1
There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
Answer : Insert Into
Insert Into Departments (DepartmentName)
SELECT 'Sales'
UNION ALL SELECT 'Shipping'
UNION ALL SELECT 'Accounts'
Assuming the other fields allow null
Random Solutions
word press password??
RPD to W2K3 SP2 failing - RPC server unavailable
execute sql which is placed in an xml file using Java code
How can I get WIndows Fax And Scan to resend to busy numbers?
How to see what application is trying to communicate?
How to change the title of the backbaritem in uinavigationcontroller
replying html mail which is coming from my web site
Remove "Document] is reserved by [author] - Enter password to modify, or open read only" dialog in Word 2007
A SCRIPT THAT WILL SEARCH AND SHOW RESULT FOUND
Visiting the Fort Worth / Dallas area in August, any suggestions on what to do and see?