Non so se ho capito bene cosa ti serve, ma con questo:
keys = [
("LDAP server", "Agent"),
("-LDAP-server-", "_S-"),
("Pippo'", "'pluto"),
("Pippo", None),
("Pippo", "")
]
T=[]
for a,b in keys:
print q.curs.mogrify("select trim(%s|| coalesce( '_'||%s,''
),'_');",(a,b))
q
Si ok,
apro il thread a insulti vari, tutto ammesso :-)
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python
grande simone.
On Tue, Mar 20, 2012 at 22:15, Simone Federici wrote:
> ---
> Simone Federici wants to stay in better touch using some of Google's coolest
> new
> products.
[snip]
©
--
R
K--S
L
_
---
Simone Federici wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-51de0174bd-fd59108312--uCEsE6Ps-TaLYm9DLZ1HiTMHgk
You'l
Dato queste coppie di chiavi
keys = [
("LDAP server", "Agent"),
("-LDAP-server-", "_S-"),
("Pippo'", "'pluto"),
("Pippo", NULL)
("Pippo", "")
]
tramite SQL:
- PGSQL quote_literal(column1) || '_' ||quote_literal(column2)
- SQLITE quote(col1) || '_' || quote(col2)
- OR
Sono aperte le iscrizioni all'Agile Coach Camp italiano:
http://accitaly.wordpress.com
Se avete qualche interesse per il coaching, vi conviene iscrivervi. E'
un bell'evento, sia dal punto di vista sociale che da quello dei
contenuti.
ciao
Simone
___
Chi ci va?
DjangoCon Europe 2012 Early Bird registration and Call For Papers
http://2012.djangocon.eu/
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python