[pyar] Ayuda: string multilinea

fisa fisadev en gmail.com
Mie Ene 11 13:18:39 ART 2012


On Jan 11, 2012 1:11 PM, "Rodolfo Fernández" <rfernandez.chile en gmail.com>
wrote:
>
> El error:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 174, in
execute
>   File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 36, in
defaulterrorhandler
> _mysql_exceptions.OperationalError: (1142, "SELECT command denied to user
'usuario'@'localhost' for table 'tabla' ")
>
> Rodolfo Fernández.

Fijate que el error dice:
"Comando SELECT denegado para el usiario 'usuario'@'localhost' para la
tabla 'tabla' "
Es claramente un tema de permisos de la base de datos.

--
fisa - Juan Pedro Fisanotti - desde Android

>
> El 11 de enero de 2012 13:04, Roberto Alsina <ralsina en netmanagers.com.ar>
escribió:
>
>> On 1/11/2012 1:02 PM, Rodolfo Fernández wrote:
>>>
>>> Hola de nuevo.
>>>
>>> Necesito vuestra ayuda...
>>>
>>> Tengo la siguiente declaración de string:
>>> sql = "SELECT DATE_FORMAT(tabla.fecha, '%H:%i:%s') FROM
base_datos.tabla; "
>>>
>>>
>>> y la quiero pasa a un string multilinea, para mayor legibilidad:
>>> sql = '''
>>>        SELECT DATE_FORMAT(tabla.fecha, '%H:%i:%s')
>>>        FROM base_datos.tabla;
>>>        '''
>>>
>>> Pero me parece que me da problemas con el '%'
>>>
>>
>> ¿Porqué te parece? ¿Lo probaste y te dió un error?
>> _______________________________________________
>> pyar mailing list pyar en python.org.ar
>> http://listas.python.org.ar/listinfo/pyar
>>
>> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>>
>> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
Argentina - http://www.usla.org.ar
>
>
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
Argentina - http://www.usla.org.ar
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20120111/f7487815/attachment.html>


More information about the pyar mailing list