#display_table
Explore tagged Tumblr posts
sapphire-neo · 18 days ago
Text
0 notes
poison-raika · 18 days ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
外来語カタカナ表示表、良かったら活用して下さい。 Будь ласка, скористайтеся таблицею, яка показує, як писати іноземні слова катаканою. Please feel free to use the table showing how to write foreign words in katakana.
1 note · View note
pythonprogrammingsnippets · 2 years ago
Text
python display all tables and their contents in a sqlite database
import sqlite3 def display_tables(db_file): # Connect to the database conn = sqlite3.connect(db_file) cursor = conn.cursor() # Get the table names cursor.execute("SELECT name FROM sqlite_master WHERE type='table';") table_names = cursor.fetchall() # Iterate over the tables for table_name in table_names: print(f"Table name: {table_name[0]}") # Get the column names cursor.execute(f"SELECT * FROM {table_name[0]}") columns = [column[0] for column in cursor.description] # Print the column names print("\t".join(columns)) # Get the records cursor.execute(f"SELECT * FROM {table_name[0]}") records = cursor.fetchall() # Iterate over the records for record in records: # Print the record values print("\t".join(str(value) for value in record)) print() # Close the connection to the database conn.close() # Example usage: display_tables('test_new.db')
0 notes
sapphire-neo · 18 days ago
Text
0 notes
sapphire-neo · 18 days ago
Text
0 notes