|
|
Postada em 26/02/2007 10:42 hs
Fiz esta consulta: Select PG.CODIGO as Código, CLI.NOME as Nome, PG.TOTAL as Total, PG.DATA as Data, PG.STATUS as Status, PG.COD_PAGAMENTO as Pagamento from " & TABELA & " where CLI.CODIGO = PG.COD_CLIENTE order by PG.CODIGO Mas ela ta me retornando 26/2/2007 00:00:00 e eu queria que ela retornasse 26/02/2007 somente. Como arrumar??
Knight 
http://host.csti.eti.br CSTI WebHosting Hospedando Idéias 
|
|
|
|
|
|
|
|
Postada em 26/02/2007 11:14 hs
hummmm... vc deve ter colocado tipo DATETIME... passe para tipo DATE ou tente assim: SELECT DATE (PG.DATA) FROM TABELA veja se dá certo colega... at+ :)
|
|
|
|
|
|
Postada em 26/02/2007 11:27 hs
E ai Ghost deu certo em partes  Ele retornou 2007-02-26 e como eu formato ele na SQL, tem como??
Knight 
http://host.csti.eti.br CSTI WebHosting Hospedando Idéias 
|
|
|
|
|
|
Postada em 26/02/2007 13:02 hs
SELECT DATE_FORMAT(DATE (PG.DATA),'%d %m %Y') FROM TABELA ou SELECT DATE_FORMAT(DATE (PG.DATA),GET_FORMAT(DATE,'EUR')) FROM TABELA lembre-se dos maiúsculos e minúsculos... tenta ae e depois retorna at+
|
|
|
|
Knight
|
GOIÂNIA GO - BRASIL
|
|
ENUNCIADA !
|
|
|
Postada em 26/02/2007 15:47 hs
Blz Ghost Funcionou perfeitamente nos 2 exemplos, Vlw
Knight 
http://host.csti.eti.br CSTI WebHosting Hospedando Idéias 
|
|
|
|