MySQL Forums
Forum List  »  Quality Assurance

SELECT * DATE_FORMAT ???
Posted by: Emre Otun
Date: January 22, 2012 05:05AM

SELECT DATE_FORMAT(date, GET_FORMAT(DATE, 'EUR')) date FROM table.
This is ok, but only the date fields value is the result:

date
---------
10.08.1975

When i try to list all fields, the program requires me to use all column names like this:
SELECT DATE_FORMAT(date,GET_FORMAT(DATE,'EUR')) date, id, name, FROM table.

date_format(date,get_format(date,'eur')) - id - name
------------------------------------------------
10.08.1975 - 23 - Emre

How can we solve this? thanks...

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT * DATE_FORMAT ???
1833
January 22, 2012 05:05AM
1519
February 13, 2012 03:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.