1、 PL/SQL的塊結構Declare /*
Declare section-PL/SQL variables,types,cursors,and local subprograms go here.
*/
Begin /*
Executable section-procedural and SQL statements go here.
This is ths main section of the bloack and the only one that is required.
*/
Exception /*
Exception-handling section-error-handing statements go here
*/
End;注: 每個塊的結尾都要用分號結束
如下
declare fmajor
varchar(50):='Chemistary';
ffirstName