BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MYSQL Statement to replace text

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
SteveW
Guest





PostPosted: Thu May 17, 2007 9:09 pm    Post subject: MYSQL Statement to replace text Reply with quote



I need to select from table test where "letter_date" = "17/05/2007" and
change "Ticket_status" to "on Hold"

What is the syntax please.

Also is there a good resource for sample statements.

Cheers

SteveW
Back to top
Dmitry Arefiev
Guest





PostPosted: Thu May 17, 2007 9:38 pm    Post subject: Re: MYSQL Statement to replace text Reply with quote



Hello

I general you should use update statement, like that:

update MyYab set Ticket_status = 'on Hold' where letter_date = '17/05/2007'

If you are doing that from programm code, then use parameters
inplace of constants.

Regards,
Dmitry

--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine
Back to top
Bill Todd
Guest





PostPosted: Fri May 18, 2007 8:11 am    Post subject: Re: MYSQL Statement to replace text Reply with quote



SteveW wrote:

Quote:
Also is there a good resource for sample statements.

The MySQL Manual.

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.