Created
November 13, 2015 11:27
-
-
Save DonatasD/0b06ac3b29cb00f961e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import random | |
conn = sqlite3.connect("originial.db") | |
c = conn.cursor() | |
conn.execute("CREATE TABLE Pressure(value REAL);") | |
for i in range(0,100000): | |
print round(random.uniform(10.0, 25.0),2) | |
conn.execute("INSERT INTO Pressure VALUES(?);", round(random.uniform(10.0, 25.0),2)) | |
c.close() | |
conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/11853167/parameter-unsupported-when-inserting-int-in-sqlite