编写pl/sql语句块,使用if语句求出三个数的最大的数
答案:2 悬赏:70 手机版
解决时间 2021-03-05 07:04
- 提问者网友:树红树绿
- 2021-03-04 20:25
编写pl/sql语句块,使用if语句求出三个数的最大的数
最佳答案
- 五星知识达人网友:猎心人
- 2021-03-04 20:56
declare @a as int, @b as int, @c as int
select @a=10,@b=5,@c=1
if (@a>@b and @a>@c)
print @a
if (@b>@a and @b>@c)
print @b
if (@c>@a and @c>@b)
print @c
select @a=10,@b=5,@c=1
if (@a>@b and @a>@c)
print @a
if (@b>@a and @b>@c)
print @b
if (@c>@a and @c>@b)
print @c
全部回答
- 1楼网友:摆渡翁
- 2021-03-04 22:22
prompt:
在控制台输出文本,输出prompt后面的内容,比如:
prompt pl/sql developer import file
就会输出pl/sql developer import file在控制台
set feedback off:
不显示查询的行数
connect sys/orcl as sysdba:
使用sys用户以sysdba的角色连接orcl实例
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯