摘要:PostGresql 本文介绍PostgreSQL的安装和基本用法,供初次使用者上手。安装过程依赖Linux(CentOs7). postgresql的安装非常简单,可以登陆官网查看 以下为精简内容 yum install -y https://download.postgresql.org/pub
阅读全文
posted @ 2020-08-24 16:10
随笔分类 - mysql
摘要:PostGresql 本文介绍PostgreSQL的安装和基本用法,供初次使用者上手。安装过程依赖Linux(CentOs7). postgresql的安装非常简单,可以登陆官网查看 以下为精简内容 yum install -y https://download.postgresql.org/pub
阅读全文
posted @ 2020-08-24 16:10
摘要:1、初始表 mysql> select * from department; 2、修改销售部的地点为杭州 mysql> update department set address = '杭州' where d_id = 1004; 3、新增两个部门,美术部,用于网站设计,地点杭州和市场部,市场宣传,
阅读全文
posted @ 2019-11-18 17:16
摘要:1、建表和插入值 创建company数据库 创建 department表 create table department(d_id int(10) primary key not null unique,d_name varchar(20) not null,function varchar(20)
阅读全文
posted @ 2019-11-12 20:07
摘要:1、mysql>use mysql;2、mysql>update user set host = '%' where user ='root';3、mysql>select host, user from user;4、mysql>GRANT ALL PRIVILEGES ON *.* TO 'ro
阅读全文
posted @ 2019-09-18 18:52
|
||