Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUERY OK , 0 ROW AFFECTED ???

Status
Not open for further replies.

cabernet

Technical User
Feb 24, 2003
75
PK
Hello,
I cannot get that little piece of syntax working
"DELETE FROM articles where adate BETWEEN '02/25/2003' AND '02/27/2003' AND sectionID =4;"

all elements are corrects and existing, I do not have an access problem since I own the Apache server and the DB

Out of curiosity I also tried to precise a date without "BETWEEN, but always get:
"Query OK, 0 rows affected"

Thank you
 
Your dates aren't recognized by Mysql

DELETE FROM articles
where adate BETWEEN '2003-02-25' AND '2003-02-27'
AND sectionID = 4

 
ooops, wrong format - Now it works -
thank you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top