Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 sql error using date format

Author  Topic 

kamesh
Starting Member

3 Posts

Posted - 2007-07-20 : 11:38:43
Hi

im using an mySQL query on one of our web pages and im getting an error.

the query is pulling in records and converting the date.

sql:
SELECT date_format(pressDate,'%d/%m/%Y') AS f_date,rssDesc,pressSubject,pressStory
FROM tbPress
WHERE pressID = colname
ORDER BY pressDate desc

the error we're getting is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 18446744073709551615' at line 1

does anyone know what the problem could be?

we are using MySQL version 4.1.20


thanks in advance

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2007-07-20 : 11:39:53
This is a Microsoft SQL SERVER forum, not MySQL. Someone may be able to help you or point you to the right place.

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

kamesh
Starting Member

3 Posts

Posted - 2007-07-20 : 11:47:02
ah, sorry and thanks.
Go to Top of Page
   

- Advertisement -