 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
SteveW Guest
|
Posted: Thu May 17, 2007 9:09 pm Post subject: MYSQL Statement to replace text |
|
|
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
|
Posted: Thu May 17, 2007 9:38 pm Post subject: Re: MYSQL Statement to replace text |
|
|
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
|
Posted: Fri May 18, 2007 8:11 am Post subject: Re: MYSQL Statement to replace text |
|
|
SteveW wrote:
| Quote: | Also is there a good resource for sample statements.
|
The MySQL Manual.
--
Bill Todd (TeamB) |
|
| Back to top |
|
 |
|
|
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
|
|