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
mysql upgrade 4.1 to 5.1
Is c++ com server my solution?
operation on JTable
visiting New York for the first time, what should I do and what's the must see's?
Sync between BIND and Microsoft DNS
Raise Active Directory domain functional level to Windows Server 2003
Can a Mail-Enabled Public Folder be restricted from sending to a Distribution List?
Fresh install of XP doesn't allow 30 days before required activation
The time on my Cisco Call Manager Express Router is wrong.
After changing DC ip address users cannot log in