Merge pull request #154 from baztian/use-params-in-readme

Use params in README
This commit is contained in:
baztian
2020-07-02 22:56:33 +02:00
committed by GitHub
+2 -3
View File
@@ -41,8 +41,7 @@ plug-in mechanism.
Install Install
======= =======
You can get and install JayDeBeApi with `pip <http://pip.pypa.io/>`_ You can get and install JayDeBeApi with `pip <http://pip.pypa.io/>`_ ::
::
$ pip install JayDeBeApi $ pip install JayDeBeApi
@@ -100,7 +99,7 @@ Here is an example:
... ' "NAME" VARCHAR(50) not null,' ... ' "NAME" VARCHAR(50) not null,'
... ' primary key ("CUST_ID"))' ... ' primary key ("CUST_ID"))'
... ) ... )
>>> curs.execute("insert into CUSTOMER values (1, 'John')") >>> curs.execute("insert into CUSTOMER values (?, ?)", (1, 'John'))
>>> curs.execute("select * from CUSTOMER") >>> curs.execute("select * from CUSTOMER")
>>> curs.fetchall() >>> curs.fetchall()
[(1, u'John')] [(1, u'John')]