博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
dbschema实用程序
阅读量:2453 次
发布时间:2019-05-10

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

dbschema 实用程序打印复制指定表、视图或数据库所需的 SQL 语句。它还显示 UPDATE STATISTICS 语句创建的分发。

可以将 dbschema 实用程序用于以下用途:

显示 SQL 语句(模式),这是复制数据库或特定表、视图、同义词、序列或过程所必需的。

显示 Information Schema 视图的模式
显示为数据库中的一个或多个表存储的分布信息
显示有关用户定义的数据类型和行类型的信息

警告:

使用 dbschema 实用程序可以增加数据库中的序列对象,而在生成的数字中创建间隔则可能不是那些需要序列化整数的应用程序所期望的。

使用 dbschema 且只指定了数据库名称时,等价于使用带所有选项(除了 -hd 和 -ss 选项)的 dbschema。另外,如果为数据库创建了“信息模式”视图,则将显示此模式。例如:以下两个命令是等价的:

dbschema -d stores_demo

dbschema -s all -p all -t all -f all -d stores_demo

经常使用的导出数据库所有信息的语句。

dbschema -s all -p all -t all -f all -d stores_demo -ss stores.sql

[informix@test ~]$ dbschema

DBSCHEMA Database Schema UtilityINFORMIX-SQL Version 10.00.UC4

Copyright IBM Corporation 1996, 2004 All rights reserved
Software Serial Number AAA#B000000

USAGE:

dbschema [-q] [-t tabname] [-s user] [-p user] [-r rolename] [-f procname]

[-hd tabname] -d dbname [-w passwd] [-seq sequence] [-l [num]]
[-u [ia] udtname [all]] [-it [Type]] [-ss [-si]] [filename]

-q Suppress the db version from header

-t table name or "all" for all tables

-s synonyms created by user name

or "all" for all users

-p permissions granted to user name

or "all" for all users

-r create and grant of the role

or "all" for all roles :Not a valid option for SE

-f SPL routine name

or "all" for all SPL routines

-hd Histograms of the distribution for columns of
of a specified table, a specific table column,
or "all" for all tables.

-d database name

-w database password

-seq generate sequence specific syntax

-u Prints the definitions of user-defined data types

-ui Prints the definitions of user-defined data types,

including type inheritance

-ua Prints the definitions of user-defined data types,

including all functions and casts defined over a type

-u all Directs dbschema to include all the tables

in the display of distributions
-it Type of isolation can be DR, CR, CS or RR
-l set lock mode to wait [number] optional

-ss generate server specific syntax

-si excludes the generation of index storage clauses for
non-fragmented tables

filename is the name

of file that the SQL
script goes in.

[informix@test ~]$

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-245624/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-245624/

你可能感兴趣的文章
Elasticsearch初学者教程
查看>>
初学者应该学c++与c#_面向初学者的完整C#课程
查看>>
vue.js快速入门_Vue.js快速介绍
查看>>
web前端的发展简史_前端框架简史
查看>>
this 上下文_当“ this”失去上下文时该怎么办
查看>>
kubernetes 介绍_Kubernetes的友好介绍
查看>>
bug探索_探索一流功能的力量
查看>>
如何避免您的网站在Twitter和Facebook上的可耻外观
查看>>
导入样机_如何开始构建Android应用程序:创建样机,UI和XML布局
查看>>
最先进的深度学习:Mask R-CNN简介
查看>>
css参考手册css3手册_CSS手册:面向开发人员CSS便捷指南
查看>>
react 中国际化_从头到尾如何在React中设置国际化
查看>>
自学真的很难成才吗_对于自学成才的开发人员而言真正有用的职业资源
查看>>
bulma.css_在5分钟内学习Bulma CSS-初学者教程
查看>>
如何快速设置您的ES6环境
查看>>
深圳哪个区的it工作多_如何创建虚拟IT工作区
查看>>
组件和高阶组件区别_高阶组件:终极指南
查看>>
如何知道Kubernetes是否适合您的SaaS
查看>>
如何使用React Native构建实时的Todo应用
查看>>
apollo调试工具_GraphQL工具包Apollo的完整介绍
查看>>