title: cx_Oracle CREATE TABLE AS returns ORA-01036: illegal variable name/number
body: <p>I'm trying to CREATE TABLE AS using cx_Oracle on Python 2.4.6</p>
  
  <p>The following code:</p>
  
  <pre><code>    query = '''CREATE TABLE TMP_STATS_1 AS
      select NUM from INF_CARD where IMPORT_DATE between
      to_date(:datepass || ' 00:00:00','dd/mm/yyyy hh24:mi:ss') and
      to_date(:datepass || ' 23:59:59','dd/mm/yyyy hh24:mi:ss')'''
      curs.execute(query, datepass=datep)
  </code></pre>
  
  <p>Returns: <strong>cx_Oracle.DatabaseError: ORA-01036: illegal variable name/number</strong></p>
  
  <p>Taking out the <code>CREATE TABLE TMP_STATS_1 AS</code> and leaving only the <code>SELECT</code> statement, works perfectly. Also, when using <code>CREATE TABLE AS</code> statement on SQLPLUS it runs correctly.</p>
  
  <p>Is there any specific syntax for <code>CREATE TABLE AS</code> to be used in cx_Oracle? Tried to find examples for this, but none found so far.</p>