1. On the premise that the environment variable is well configured, strike the command #>sqlplus2. Enter username/password Login Oracle #> default we use first, user name: Scott, password: Tiger login3.A. When you log in, you can only tap Sqlplus,
Operation of MySQL DatabaseOne: View all the databases in MySQLSHOW DATABASES;Two: Create a databaseCretae database name;Three: Deleting a databaseDROP database name;Four: View the storage engines supported by the databaseSHOW ENGINES;Four: Connect
One, view all databases in MySQLshow databases;Second, view the database that is currently in useSelect Database ();Third, view all tables in the current databaseShow tables;Iv. Viewing the table structureDescribe employees;Where employees is the
SQL SERVER Data import MYSQLTools: Navicat for MySQL Baidu search an installation can, if you have installed MySQL1, create the target databaseClick Create a good target database website The table item on the point, the Import wizard appears on the
Demo:Syntax for creating a database1. Basic grammarCreate DATABASE tour character Set GBK;Use tour;Non-primary key self-growingCREATE TABLE Emb_t_employee(Emb_c_operatorid int NOT NULL,Emb_c_empcode varchar (255) is not NULL,Emb_c_gender int NOT
--Select 30 of employees in the departmentSELECT * from EMP where deptno=30;--List all clerks ' names, departments, numbers--Using the internal connection, that is, the equivalent link, is also the most commonly used linksSELECT ename,empno,dname
1. View the current user's basic information
SELECT * FROM User_users
2. View the role of the current user
SELECT * FROM User_role_privs
3. View System permissions and table permissions for the current user
Col Column name for (MAT) format: Columns can be formatted (A100 is a varchar-based format that displays 100 characters, which can be A60,A80), for example: col file_name format a100;col column name: Display the format of the forefront Clear Co Lumn:
1Isql-usa-s Service Name--General Login2Isql-usa-s Service Name-jcp936--SA user logs on client using character set cp9363 4C:\USERS\ADMINISTRATOR>ISQL-USA-SRUSKYPC--gracefully shut down the database5 Password:6 1>shutdown7 2>Go8 9
Input command hbase Shell entersTo view all tables that exist:ListTo view the table structure:Describe ' table name 'Query the contents of the table:Scan ' TABLENAME '-----For example have a student table to view it scan ' student 'Add, update data :
1, creating table: Create ' t1 ', ' F1 ', ' F2 ', ' F3 ' #-------T1 is the table name, F1,F2 , F3 is the column family name 2, view all tables: list 3, view the structure of the table: describe ' t1 ' 4, add a column family:
When developing a project, there is a feature that needs to see what tables are in the database, and what fields are available for each table, viewed online, and now shared with you.Oracle:Query data table (Tables) Name:Select table_name, Tablespace_
The Client service name establishes a connection to a remote or local listener that the client uses to issue a connection request to the server side.When Oracle is installed, the user must specify a global database name, a SID name. Oracle
The database and table description used in the example:1. Select Database
Use DAY15;
2. Create a table
CREATE TABLE teacher (
ID INT,
NAME VARCHAR
)
3. View all Tables
Show TABLES;
4. View table structure
DESC student;
5, delete the
--querying all users in the current systemSelect * fromall_users--Check all the tables below the current user:Select * fromtabwhereTname not like '%$%'--View all tables under the current user (more info)Select * fromUser_tables--Check all the
Import and export of DMP files:Import and export of the whole library1. Exporting from a remote machineEXPDP Npmdb/[email protected] Schemas=npmdb directory=my_dir dumpfile=npmdb_87.dmpParameter descriptionSchemas: can be seen as the database name,
One, cmd Log on to the Oracle serverSqlplus Scott/[email protected]//192.168. 241.128:1521/ORCSecond, the basic operation1, solve Sqlplus does not support the Chinese setting:Add the environment variables as follows:Set Nls_lang to simplified
It turns out, if not often with the code, the statement deal with, people will be over face not, the brain will feel a face, do not know what to do wrong, this long memory, the statement, not only to strengthen the memory of the SQL statement, but
About MySQL1. What is a database?A database is a warehouse that organizes, stores, and manages data according to its structure, which is generated more than more than 60 years ago, with the development of information technology and markets,
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.