在Oracle中创建变量 [英] Create Variable In Oracle
本文介绍了在Oracle中创建变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此MS SQL Server表示法在Oracle中等同于什么?
What is the Oracle equivalent of this MS SQL Server notation?
DECLARE @Variable INT
SET @Variable = 1
推荐答案
在PL/SQL中,您有一个声明块:
In PL/SQL, you have a declare block:
declare
x integer := 1;
...
begin
...
end;
如果您正在编写SQL * Plus脚本,则可以使用variable
声明
If you are writing an SQL*Plus script, you use variable
to declare a bind variable
variable x integer := 1;
还可以定义变量.
这篇关于在Oracle中创建变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文