Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Request SQL ?

Quote Reply
Request SQL ?
Hello.

I must modify a date in my table lsql_Links.


Table: lsql_Links
Column: Add_Date
2003-07-09 with -> 2003-10-09

But, I do not want to modify the other dates in the column...

It is possible to work with a request SQL ?


I did not find an answer on the forum.
Thank you for your assistance.


Mick.
Quote Reply
Re: [mick31] Request SQL ? In reply to
Hello,

I found this request :

UPDATE lsql_Links SET Add_Date='2003-10-09'

But, it replaces all the entries (dates) in the column. Unsure

Thank you for your assistance.
An idea?
Mick
Quote Reply
Re: [mick31] Request SQL ? In reply to
Hello

I found this request

UPDATE lsql_Links SET Add_Date='2003-07-09' WHERE Add_Date='2003-10-09'

Somebody little to confirm ?

Thank you

Mick


Quote Reply
Re: [mick31] Request SQL ? In reply to
Hello,

This request worked well.

UPDATE lsql_Links SET Add_Date=REPLACE(Add_Date, '2003-07-09', '2003-10-09');

Words of research in the forum : UPDATE lsql_Links

http://www.gossamer-threads.com/...i?post=236525#236525

Excuse, but I am not a programmer ... Frown

Mick
Quote Reply
Re: [mick31] Request SQL ? In reply to
>> UPDATE lsql_Links SET Add_Date='2003-07-09' WHERE Add_Date='2003-10-09'


That will change an existing date of 2003-10-09 to 2003-07-09


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Request SQL ? In reply to
Hello Pudog,

Thank you for your assistance. Smile

Mick