博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
数据库database
阅读量:7091 次
发布时间:2019-06-28

本文共 571 字,大约阅读时间需要 1 分钟。

1.创建数据库:create datebase financials

                        create database if not exists financilas

 

2.查看数据库(所有):     show databases;

                                      show databases like " h.*"  

3. 查看数据库(具体)  describe database financial

4.添加路径:                 location"/my/prefered/directory"

5.增加描述信息:         comment "holds all financial tables"

6.增加键-值属性信息:with dbproperties("creator"="mark","date"="2019-04-15")

7.删除数据库:drop database if exists financials cascade(自行先删除数据库中的表)

                        drop database if exists financials restrict(必须先删除数据库中的表)

8.修改数据库:alter database financials ser dbprofiles("edited_by"="joe")

 

转载于:https://www.cnblogs.com/hapyygril/p/10711918.html

你可能感兴趣的文章
从零开始编写自己的C#框架(12)——T4模板在逻辑层中的应用(一)(附源码)...
查看>>
sql server 正在运行的sql语句
查看>>
git 放弃本地修改 强制更新
查看>>
树莓派安装docker
查看>>
oracle之 Oracle LOB 详解
查看>>
机器学习相关——协同过滤
查看>>
一文看懂考恩2017 AI研究报告:2020年AI市场规模将达4000亿美元
查看>>
5Python全栈之路系列之IO多路复用
查看>>
Linux相关网络知识梳理
查看>>
物联网全面升级,十年内推动工业进入智能化新阶段
查看>>
8Manage项目管理:实现企业信息化管理转型
查看>>
Android之assets资源
查看>>
android精要——Service
查看>>
centos6.5通过ftp下载源码包解压出错出错
查看>>
菜鸟学Linux 第099篇笔记 haproxy
查看>>
Windows常用命令
查看>>
菜鸟学Linux 第053篇笔记 Section 3
查看>>
jquery.multiSelect下拉框多选
查看>>
linux下使用shell脚本自动化部署项目
查看>>
shell查询当前时间
查看>>