问题1:社区版没有database 窗口怎么解决?
安装完成Database Navigator后,按如下配置:
问题2:创建了table 后不会展示字段信息
解决:点下 no filter
sqlite 基本使用:
# -*- coding = utf-8 -*-
# @Time: 14:09
# @Author: zzc
# @File: test_sqlite.py
# @Software: PyCharm
import sqlite3
conn = sqlite3.connect('../test.db')
c = conn.cursor() # 获得游标对象
#创建表
sql = '''
create table employee(
id int not null primary key,
name text not null,
age int not null,
address char(50),
salary real
);
'''
# # 插入数据
# insert_sql = '''
# insert into empolyee values(2, 'zhangsan',18,'北京市朝阳区', 10000.00)
# '''
# print('创建表成功')
#提交
c.execute(sql)
conn.commit()
conn.close()
sqlite 菜鸟教程:
标签:sqlite,sql,社区,table,sqlite3,Pycharm,null,conn From: https://www.cnblogs.com/czzz/p/16852836.html