If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > corection needed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-06, 07:14
lpapp_97 lpapp_97 is offline
Registered User
 
Join Date: Nov 2006
Posts: 34
Angry corection needed

i have a problem i'm working on a table update the table contains all the data wich is going too be updated from ana external source.
i have to read the external data in wich is not a problem but i have the next problem the selection criteria to get the data wich i'm going to update it works but the update it doesnt. The case is a particular one because the teory it sais to do the next thing:

update table1
set colx = (select colx from table2 where table2.colx like 'criterya');

ok that i beutiul but how to do it for a single tale?

my sintax is like this

update table1
set colx = (select col1 form table1 where col1 external source <insert new data> )
how to do the underlined part.

on anodher forum sommebody said do the next thing:
update table1
set colx= criteria;
thatis nice but absolutly doesn't work because it gives me the next message:
"error creating cursor handle"
__________________

Lehel
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On