postgresql操作手册
#提示符#前的postgres表示当前数据库名 postgres=# select datname from pg_database; #列出所有数据库(标准的sql 语句) datname ----------- postgres template1 template0 db_test postgres=# \l #查看系统用户 usename ---------- postgres postgres=# exit; #退出连接,用quit;也行(标准的sql语句) postgres=# \q #退出连接(pg内置命令)★不建议使用带\反斜 杠的内置命令 ②可视化客户端连接pg数据库 #新建1个名为db_test的数据库 postgres=# select datname from pg_database; #列出所有数据库(标准的sql 语句) postgres=# \l #列出所有数据库(pg内置命令)0 码力 | 17 页 | 445.84 KB | 1 年前3DevOps Meetup
technology under the sun Solaris, Windows, Linux Apache, IIS, TCServer, etc. Oracle, DB2, SQL Server How we got better We read and we studied. Created a self-improvement project 2 week0 码力 | 2 页 | 246.04 KB | 5 月前3python3学习手册
若文件不存在则新建 # 数据库所有数据存储在此文件中,默认数据库名称同文件名(不含.db后 缀) sqlite_cursor = sqlite_conn.cursor() # 创建一个游标,用于执 行sql语句 # 查询是否有名为'tb_test'的表 sqlite_cursor.execute( 'SELECT * FROM sqlite_master WHERE "type"="table" sqlite3.connect('test.db') # 连接数据库(此 时数据库文件已存在) sqlite_cursor2 = sqlite_conn2.cursor() # 创建一个游标,用于 执行sql语句 sqlite_cursor2.execute("select * from tb_test limit 1000") result = sqlite_cursor2.fetchall() #0 码力 | 213 页 | 3.53 MB | 1 年前3k8s操作手册 2.3
monit.daemonset.yml #应用 # kubectl get daemonset #查看 ★Job控制器 job控制器用于运行一次性pod(如执行sql脚本或一次性备份任务等)容器中的 进程在正常运行结束后,置为completed状态,且不会再重启,如果进程运行失 败,则根据配置决定是否要重启 # vi xx-job.yml #内容如下0 码力 | 126 页 | 4.33 MB | 1 年前3
共 4 条
- 1