bluegene.hao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-07 08:40 UTC
How to insert a string content into varbinary column in rails
There is a varbinary column in database table,in sql statement,we can use '' convert(varbinary(10),''hello'') '' to convert string to varbinary ,but in rails,how can I do that or there is a another way to insert a string content into varbinary column. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- [cdr_odbc] error: Cannot insert the value NULL into column 'calldate'
- How Can I insert another column data into the CSV file when I use FasterCSV?
- Rails:Using Insert statement in active record?
- validates_uniqueness_of doesn't work if value tested is numeric and column is string
- inserting utf8 value in unique column generates unexpected duplicate key error