migrations and escaping single quotes

From: Theodore Petrosky (tedpet..ahoo.com)
Date: Mon Jun 29 2009 - 21:57:36 EDT

  • Next message: Kieran Kelleher: "Re: Eclipse 3.5 slow?"

    I am using migrations to create my database structure. I am also populating some of the tables. ERXJDBCUtilities.executeUpdate(database.adaptorChannel(), "INSERT INTO t_sub_category " + "(c_sub_cat_title, c_contact_category_id) VALUES ('Watches (Men’s & Women’s)', 19)"); Using the above to insert data, how do I escape the single quotes? Ted



    This archive was generated by hypermail 2.0.0 : Mon Jun 29 2009 - 21:58:17 EDT