Oracle allows you to view the relationships between users, user permissions, user tablespaces, and user default tablespaces. Select username, default_tablespace from dba_users; 1. view table structure: desc table name 2. view the table of the
Author: le4f
Http://le4f.net/post/post/build-social-engineer-evildata-search-engineHow to design and build a social engineering database
From the design of a social engineering database at the beginning to the present beta, it took a whole month
Document directory
· Character Functions
· Numeric Functions
· Date functions
· Conversion functions
· General Functions
I. common syntax
-- 1. drop table name cascade constraint -- 2. when the content in the parent table is deleted, the
What command should I use to view the Mysql table structure? The following describes the commands for viewing the Mysql table structure in detail. If you have encountered a similar problem in the Mysql table organization, you may wish to take a look.
Check the space usage of each dbspaces: select name dbspace, sum (chksize) allocated, sum (nfree) free, round (sum (chksize)-sum (nfree )) /sum (chksize) * 100) | "%" pcused form sysdbspaces d, syschunks c where d. dbsnum = c. dbsnum group by name
This article is just a summary of my younger brother's experience.
Although Java JDBC is used to connect to the database, it is difficult to have a certain MySQL Foundation. Here, I suggest using command line input,
Familiar with the syntax, the
The problem is: change the name of the employee in the employee information table to another one. For example, change Zhang to Wang and only change the name without changing the name:
Update table name set field name = 'King' | substr (field name, 2
Use the show statement to find out which database exists on the server:
mysql> SHOW DATABASES; +----------+ | Database | +----------+ | mysql | | test | +----------+ 3 rows in set (0.00 sec)
2.
Take notes for MySQL
Chapter 01
SQL (pronounced S-Q-L or sequel) is short for structured query language.SQL is a language specifically used to communicate with databases.
Chapter 02Mysql-u user-P [Password] [-H host-P port]
Chapter 03Show
The method for adding fields in MySQL is not complex. The following describes how to add and modify fields in MySQL. It is helpful for you to learn how to add fields in MySQL.
1. log on to the database> Mysql-u root-P Database Name
2. query all
1. Start and exit
1. Go to MySQL: Start MySQL command line client (MySQL dos Interface) and enter the password for installation. The prompt is: mysql>
2. Exit MYSQL: Quit or exit
Ii. Database Operations 1. Create a database
Command: create
I. Database Operations1. Create a databaseCommand: create database For example, create a database named xhkdb.Mysql> Create Database xhkdb;2. display all databasesCommand: Show databases (Note: The last S is available)Mysql> show databases;3. delete
Desc table name. (You can view the detailed information of the table)
Showuser; (view the current user)
Modify Field name: alter table [Table name] rename column old field name to new field name;
1) Select B. ID, B. Title, B. ndate, A. manag, ename
1. Oracle startup and Shutdown
1. In a single-host environment
To start or shut down the Oracle system, you must first switch to the Oracle user, as shown below:
Su-oraclea: Start the Oracle System
Oracle> svrmgrl
Svrmgr> connect internal
Svrmgr>
PS: updating ......
Create user: User tablespace and temporary tablespace can be specified
create user myuser identified by 123456default tablespace mytabletemporary tablespace tmp_table;
User authorization: You can select permissions as
MySQL database optimization summary, mysql database Summary
I. Considerations for MySQL database Optimization
1. Database Design (rational table design) Three Paradigm (Standard Model)
The three paradigms include:
Paradigm 1: 1NF is a constraint on
Oracle entry commandBasic commands:1. the spool command is used to screen recording in sqlplus.Spool c: \ 1.txt automatically creates 1.txt, screen recordingSpool c: \ 1.txt appendAdd to 1.txt2. conn system/orcl switch user connection3. -- meaning
Oracle SQL * PLUS commands
1. Common Oracle SQL * Plus commands
(1) Environment commands
SET command format: SET The SHOW command can display the SQL * Plus environment parameter values.
(2) common functionsSQL> set linesize x SQL> SET PAGESIZE y
Basic Mysql operations and basic mysql operations
Create database Name
2. display all databases
Show databases;
3. display all tables:
Use Database Name
Show tables;
4. Display All table Structures
Desc table;
5. display all stored procedures
Show
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.