Thursday, August 24, 2017

sqlite does what

>>> import sqlite3
>>> c = sqlite3.connect(':memory:')
<sqlite3.Connection object at 0x10d25c9d0>
>>> c.execute('select null and 1').fetchall()
>>> c.execute('select null and 0').fetchall()
>>> c.execute('select null or 1').fetchall()
>>> c.execute('select null or 0').fetchall()
SQlite's docs are fantastic:

1 comment:

  1. This is an amazing way to help people who have difficulties understanding coding techniques. Likewise, we think that you guys can ask for any superior writing service to get a shoutout.