Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cursor python

import sqlite3

con = sqlite3.connect("mydb")

cur = con.cursor()

who = "Yeltsin"
age = 72

cur.execute("select name_last, age from people where name_last=? and age=?", (who, age))
print cur.fetchone()
Comment

PREVIOUS NEXT
Code Example
Python :: python string not contains 
Python :: python bug 
Python :: how to add items to a set in python 
Python :: unpacking tuples in python 
Python :: keras sequential layer without input shape 
Python :: Python use number twice without assignment 
Python :: beautifulsoup remove tag with class 
Python :: python for loop float increment 
Python :: python find all occurrence in string 
Python :: python popen 
Python :: df max count syntax 
Python :: Python - Comment lire une ligne de fichier par ligne 
Python :: django get form id from request 
Python :: python remove multiple element from list by index 
Python :: python selenium teardown class 
Python :: python find string in string 
Python :: how to loop function until true python 
Python :: how to calculate the google map distance in python 
Python :: looping through the list 
Python :: python - sending mail 
Python :: set pop in python 
Python :: *kwargs 
Python :: Generate random numbers following Poisson distribution, Geometric Distribution, Uniform Distribution, and Normal Distribution, and plot them 
Python :: class in python 
Python :: get element from string with deliminator python 
Python :: try except to specific line 
Python :: python create sqlite db file 
Python :: set comprehension 
Python :: how can I convert dataframe to list with in python without changing its datatype? 
Python :: round float python 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =