On Oct 8, 2008, at 10:58 AM, menuge wrote:

>
> Hi all,
>
> I don't know how to insert a NULL value in a mysql table...
>
> Here is my code:
> ######
> table = Table("table", metadataConfig, autoload=True)
> i = table.insert()
> i.execute({param1:'HIHIIH',param2:Null})
> ######
>
> I tried to replace Null by None, but in Mysql, the result is None...
>
> Is the a sqlalchemy contant defined for Null?
>

leave the columns out altogether, which will result in NULL.  Or pass  
in None as the value.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to