Python selct with where Static Operation

Estimated reading: 1 minute 338 views

Python selct with where Static Operation

The Below shows the Operation For Select With where in static manner.

				
					import pymysql


conn = pymysql.connect(
        host='localhost',
        user='root',
        password="12345",
        db='sakila',
)
#print(conn)


cur = conn.cursor()
#print(cur)

string_Query = "select * from olympix_data_organized where id = 15"

op_res = cur.execute(string_Query)
print(op_res)
				
			

Leave a Comment

CONTENTS