mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 10:44:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import sqlite3
 | |
| 
 | |
| con = sqlite3.connect(":memory:")
 | |
| cur = con.cursor()
 | |
| cur.executescript("""
 | |
|     create table person(
 | |
|         firstname,
 | |
|         lastname,
 | |
|         age
 | |
|     );
 | |
| 
 | |
|     create table book(
 | |
|         title,
 | |
|         author,
 | |
|         published
 | |
|     );
 | |
| 
 | |
|     insert into book(title, author, published)
 | |
|     values (
 | |
|         'Dirk Gently''s Holistic Detective Agency',
 | |
|         'Douglas Adams',
 | |
|         1987
 | |
|     );
 | |
|     """)
 | 
