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
jQuery AJAX over SSL
Printing tabs in VB.NET
query
What is the fastest IDE hard drive available?
How do I index fields in an Access database?
Remote connection from the internet to a nat computer in a SBS 2008 R2 network
MS Access - Loop through code based on form value
Microsoft VBScript runtime error '800a0005' while using MID
Eclipse and Tomcat: HTTP Status 404
4 functions and call one randomly on click