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
error: 26 - Error Locating Server/Instance Specified
Outlook 2007 keeps bombing every five minutes or so. Send error report?
counts records in a query
Jquery javascript error
Out of disk space > cannot uninstall programs
SEO Yahoo Directory, $299 a year, is it worth it? Will it increase a PR0 PR1 or PR2 a level?
Change AD password via web
how do i configure notepad++ to run and compile C++ programs ?
Read XML through oracle view and ordered output
programmatically find WebappsClassLoader in tomcat