于2021-07-22 加入墨天轮
个人成就
发布20次内容
获得27次点赞
内容获得20次评论
获得0次收藏
回答了0次问答
文章分类
opengauss每日一练
(20)
opengauss
(19)
openguass
(1)
文章档案
2022年12月
(14)
2022年11月
(6)
最新评论
openGauss每日一练第19天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮-雪宝君openGauss每日一练第18天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮-雪宝君openGauss每日一练第17天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮-雪宝君openGauss每日一练第16天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮-雪宝君openGauss每日一练第15天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮福利君openGauss每日一练第14天 | 学习心得体会
#强壮;作业审核合格,一起参与21天openGauss学习打卡活动!
活动详情:https://www.modb.pro/db/551619
-墨天轮福利君动态
文章 ·20
数说 ·2
问答 ·0
文档 ·0
关注
留言板·0
openGauss每日一练第17天 | 学习心得体会
> 索引是一个指向表中数据的指针。一个数据库中的索引与一本书的索引目录是非常相似的。
索引可以用来提高数据库查询性能,但是不恰当的使用将导致数据库性能下降。
1.创建表,在表中创建索引
```
--
发布文章于
2022-12-11
openGauss每日一练第16天 | 学习心得体会
1.创建表,为表添加字段
```
drop table if exists test;
create table test(
id bigint,
name varchar(5
发布文章于
2022-12-11
openGauss每日一练第15天 | 学习心得体会
1.创建表和约束
```
drop table if exists test;
create table test(
id bigint,
name varchar(50) not nul
发布文章于
2022-12-08
openGauss每日一练第14天 | 学习心得体会
1.创建表的时候定义列级约束
```
drop table if exists test;
create table test(
id bigint ,
name varchar(50)
发布文章于
2022-12-08
openGauss每日一练第11天 | 学习心得体会
1.创建表空间 enmtbs 和数据库 musicdb
```
omm=# CREATE TABLESPACE enmtbs RELATIVE LOCATION 'tablespace/enmtbs1
发布文章于
2022-12-04
openGauss每日一练第10天 | 学习心得体会
1、创建表空间 t_tbspace、用户 test,并使用test,在这个表空间上创建表t1
```
--创建用户test
CREATE USER test IDENTIFIED BY 'Kunpen
发布文章于
2022-12-04
openGauss每日一练第9天 | 学习心得体会
1.创建表空间 newtbs1
```
--创建表空间 newtbs1
CREATE TABLESPACE newtbs1 RELATIVE LOCATION 'tablespace/newtbs1'
发布文章于
2022-12-02
openGauss每日一练第8天 | 学习心得体会
1.创建表空间 newtbs1、 ds_location1,查看表空间
```
--创建表空间、测试数据库
omm=# CREATE TABLESPACE newtbs1 RELATIVE LOCAT
发布文章于
2022-12-02
openGauss每日一练第7天 | 学习心得体会
1.查看当前数据库下有哪些模式
```
omm@modb:~$ gsql -r
gsql ((openGauss 3.0.0 build 02c14696) compiled at 2022-04-0
发布文章于
2022-11-30
openGauss每日一练第6天 | 学习心得体会
1.创建用户user1,分别在数据库 musicdb1、数据库 musicdb2 创建表t11,t21
```
omm@modb:~$ gsql -r
gsql ((openGauss 3.0.0 b
发布文章于
2022-11-29
openGauss每日一练第4天 | 学习心得体会
1.创建用户user1、user2、user3,授予user1、user2、user3数据库系统的SYSADMIN权限
```
openGauss=# CREATE USER user1 IDENTI
发布文章于
2022-11-27
openGauss每日一练第3天 | 学习心得体会
1.创建表空间music_tbs1和多个数据库music_db、music_db1、music_db2
```
–进入数据库omm,创建表空间、测试数据库
$ gsql -d postgres -p
发布文章于
2022-11-26
openGauss每日一练第2天 | 学习心得体会
1.gsql命令连到数据库omm
```
$ gsql -d postgres -p 15400 -r
gsql ((openGauss 3.0.0 build 02c14696) compiled
发布文章于
2022-11-25
openGauss每日一练第1天 | 学习心得体会
1. 从操作系统层面查看数据库进程和线程,判断数据库是否启动。
```
$ ps -ef|grep guass|grep -v grep
--没有guass进程,启动数据库
$ su - omm
$
发布文章于
2022-11-24