Microsoft
Software
Hardware
Network
Question : Insert into ... where problems
Hi Experts
I have a small problem.
i am trying to insert a birthday from one table to another with the following statement;
INSERT INTO consumerattributes( BirthDate )
SELECT 'birthday'
FROM customers
WHERE `consumerattributes`.`cust
omerid` = `customers`.`customerId`
I get this error :
#1054 - Unknown column 'consumerattributes.custom
erid' in 'where clause'
What I'm trying to do is to populate the birthday field with the info from a older database, therefor the WHERE `consumerattributes`.`cust
omerid` = `customers`.`customerId`
I know that `consumerattributes`.`cust
omerid` exist. - It works if i just use
WHERE `customerid` = `customers`.`customerId`
but it just inserts the data in new rows :'(
I'm really hoping that you are able to help
:)
/DeviliX
Answer : Insert into ... where problems
Try this...
INSERT INTO consumerattributes([BirthD
ate])
SELECT Birthday FROM customers WHERE consumerattributes.custome
rid = customers.customerId
Random Solutions
asp.net Can I put more that one mssql table 'field' in one GridView Column?
limit user only to send emails within our own company
Windows XP Pro OEM Prebuilder Media download from Microsoft website.
Developing for W2K3 - Missing MSCVP100.DLL & MSVCR100.DLL
word 2007 page numbers
C# Reading file into bytes, then converting it to string, then converting it back to bytes
Setting up an ftp log server on a Cisco ASA 5505
Crystal Reports 2008 Win Nul 0
Logging in to a router, firewall, and switches
How do I know what the Ram Capacity is on my PC if I have 4 slots but have 2gig sticks currently per slot