新手求助:ACCEPT是SQL命令吗?

解决方案 »

  1.   

    ACCEPT
    ------Reads a line of input and stores it in a given substitution variable.
    In iSQL*Plus, displays the Input Required screen for you to enter a
    value for the substitution variable.ACC[EPT] variable [NUM[BER] | CHAR | DATE | BINARY_FLOAT | BINARY_DOUBLE]
    [FOR[MAT] format] [DEF[AULT] default] [PROMPT text | NOPR[OMPT]] [HIDE]
      

  2.   

    哦,这样~
    accept name prompt '输入部门名'
    select ename,sal,dname from emp e,dept d
    where e.deptno=d.deptno and dname=upper('&name');
    那上面的语句在SQL窗口中不能运行吗?刚接触,不大懂~~~
      

  3.   


    SQL> select * from tabley where code = 97003;      CODE CLASS           SCORE                                                                    
    ---------- ---------- ----------                                                                    
         97003 计算机             60                                                                    SQL> accept b number prompt "请输入学号:"
    请输入学号:97003
    SQL> select * from tabley where code = &b;
    原值    1: select * from tabley where code = &b
    新值    1: select * from tabley where code =      97003      CODE CLASS           SCORE                                                                    
    ---------- ---------- ----------                                                                    
         97003 计算机             60   
      

  4.   

    你自己都说是SQL窗口了,关键那个ACCEPT不是SQL,只是sqlplus这个工具里的命令..