Home > Database > Mysql Tutorial > Oracle正斜杠(/)的作用

Oracle正斜杠(/)的作用

WBOY
Release: 2016-06-07 17:10:58
Original
3224 people have browsed it

正斜杠(/):在Oracle中,用来终止SQL语句。更准确的说,是表示了ldquo;运行现在位于缓冲区的SQL代码rdquo;。正斜杠也用作分隔项

正斜杠(/):在Oracle中,用来终止SQL语句。更准确的说,是表示了“运行现在位于缓冲区的SQL代码”。正斜杠也用作分隔项。

例如:执行以下语句


CREATE TABLE TEMP

( AAA VARCHAR2(2 BYTE),

    BBB VARCHAR2(2 BYTE)

)

Insert into TEMP (AAA,BBB) values ('TESTA','TESTB');

就会报错: TABLE OR VIEW DOES NOT EXIST。

在INSERT 语句之前加入正斜杠/即可。

linux

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