Home > Database > Mysql Tutorial > body text

Does mysql have plsql?

青灯夜游
Release: 2023-04-07 16:52:20
Original
1757 people have browsed it

mysql does not have plsql. plsql generally refers to PL/SQL, which is a procedural SQL language; plsql is an extension of the Oracle database to SQL statements and is specifically developed for the Oracle database stored program unit, so it cannot be connected to the mysql database.

Does mysql have plsql?

The operating environment of this tutorial: windows7 system, mysql8 version, Dell G3 computer.

mysql does not have plsql.

plsql generally refers to PL/SQL, which is a programming language called Procedural Language/SQL. PL/SQL is an extension of Oracle database to SQL statements. The features of programming languages ​​are added to the use of ordinary SQL statements, so PL/SQL organizes data operations and query statements into procedural units of PL/SQL code, and implements complex functions or calculations through logical judgments, loops and other operations. programming language.

plsql is specially developed for the Oracle database stored program unit, so it cannot connect to the mysql database.

plsql basic usage tutorial

1. Login

1 , configure the database service here, and then you can log in

Does mysql have plsql?

2. Enter the user name and password, and select the previously configured database service. My service name is localhost. (The name is arbitrary.)

Does mysql have plsql?

2. Create a table space

1. In the SQL window Execute the following SQL code in.

CREATE TABLESPACE FJFEDW
LOGGING
DATAFILE 'C:\app\Administrator\oradata\orcl\FJFEDW.DBF'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
Copy after login

2. Create a temporary table space. You do not need to create a temporary table space here. You can also use the default temp. The code is as follows:

CREATE TEMPORARY TABLESPACE FJFEDW_TEMP
TEMPFILE 'C:\app\Administrator\oradata\orcl\FJFEDW_TEMP.DBF'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
Copy after login

3. During this process, the error ORA-02180: invalid option for CREATE TABLESPACE may occur. This may be an incorrect statement like other posts on the Internet. But the reason it appeared before for me was insufficient permissions. Just create it with a user with higher authority.

3. Create a user

1. Find the user option in New.

Does mysql have plsql?

#2. Fill in the user name and password, and select the table space created previously. Profile selection default.

Does mysql have plsql?

3. Set role permissions

Does mysql have plsql?

4. Set system permissions

Does mysql have plsql?

5. Quota setting

Does mysql have plsql?

4. Log in with the newly created user and create a table.

1. Create a new table, fill in the table name and comments.

Does mysql have plsql?

#2. Fill in the fields and their types.

Does mysql have plsql?

3. Select to set the primary key. (Or foreign key, the primary key is set here. You can also set indexes, etc.)

Does mysql have plsql?

[Related recommendations: mysql video tutorial]

The above is the detailed content of Does mysql have plsql?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template