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 > ADOQuery Update Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-05, 07:16
doubtsdb doubtsdb is offline
Registered User
 
Join Date: May 2005
Posts: 13
ADOQuery Update Problem

Hi all,

I have a typical problem of ADOquery not updating the STRING DATAFIELD,
When iam try to update a Integer data type it gets updated,

Here is my code

qry.sql.clear;
qry.SQL.Add('UPDATE TEST set testdata =aram1 where testvalue=aram2');
qry.Parameters[0].Value :=''''+edit1.text+'''';
qry.Parameters[1].Value :=45;
qry.ExecSQL;

here iam trying to update testdata with the value of Edit1.text, iam unable to do this updation.

Please Let me Know where iam going wrong, it is compiling and query also executing but it is not updating.

Regards

Balu
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