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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DAYOFMONTH[ ] problem

Status
Not open for further replies.

ascikey

Programmer
Feb 18, 2004
127
GB
seems to be a problem with my syntax, i am trying to return the day of the month that is in the field last_enter_date where the remote_ip field is = '127.0.0.1'
Code:
SELECT  DAYOFMONTH[last_enter_date] FROM ip_addresses WHERE remote_ip = '127.0.0.1'
any help appreciated
thx Tony
 
DAYOFMONTH(date_field)

not square brackets

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Thanks for pointing that out, it was rather late when I was doing it but even when i came back to it today i still didn’t see it
[hammer]
 
try removing the null because as far as i am aware u only say if it is NOT NULL
if that dosent work let me know and i will make the table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top