@@ -3108,11 +3108,7 @@ below and the SQLAlchemy `documentation <http://docs.sqlalchemy.org/en/rel_0_9/c
31083108 Writing DataFrames
31093109~~~~~~~~~~~~~~~~~~
31103110
3111- <<<<<<< HEAD
3112- Assuming the following data is in a DataFrame "data", we can insert it into
3113- =======
31143111Assuming the following data is in a DataFrame ``data ``, we can insert it into
3115- >>>>>>> 6314e6f... ENH #4163 Tweaks to docs, avoid mutable default args, mysql tests
31163112the database using :func: `~pandas.io.sql.to_sql `.
31173113
31183114
@@ -3209,28 +3205,19 @@ Of course, you can specify a more "complex" query.
32093205 You can also run a plain query without creating a dataframe with
32103206:func: `~pandas.io.sql.execute `. This is useful for queries that don't return values,
32113207such as INSERT. This is functionally equivalent to calling ``execute `` on the
3212- SQLAlchemy engine or db connection object. Again, ou must use the SQL syntax
3208+ SQLAlchemy engine or db connection object. Again, you must use the SQL syntax
32133209variant appropriate for your database.
32143210
32153211.. code-block :: python
32163212
32173213 sql.execute(' SELECT * FROM table_name' , engine)
32183214
3219- <<<<<<< HEAD
3220- <<<<<<< HEAD
3221- :func: `~pandas.io.sql.tquery ` returns a list of tuples corresponding to each row.
3215+ sql.execute(' INSERT INTO table_name VALUES(?, ?, ?)' , engine, params = [(' id' , 1 , 12.2 , True )])
32223216
3223- :func: `~pandas.io.sql.uquery ` does the same thing as tquery, but instead of
3224- returning results it returns the number of related rows.
3225- =======
3226- >>>>>>> ac6bf42... ENH #4163 Added more robust type coertion, datetime parsing, and parse date options. Updated optional dependancies
32273217
32283218 In addition, the class :class: `~pandas.io.sql.PandasSQLWithEngine ` can be
32293219instantiated directly for more manual control over the SQL interaction.
3230- =======
3231- sql.execute('INSERT INTO table_name VALUES(?, ?, ?)', engine, params=[('id', 1, 12.2, True)])
32323220
3233- >>>>>>> 6314e6f... ENH #4163 Tweaks to docs, avoid mutable default args, mysql tests
32343221
32353222Engine connection examples
32363223~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments