Access 存储过程

PROCEDURE Clause

大家看到这个标题第一个反应是什么,估计是“Access有存储过程吗?”不过我告诉大家,还真的有,下面就是我 从Access的帮助文件里摘录。不过明显看得出来,他的功能还是很弱的,过程体,只能是简单的Select/Insert/Update/Create Table|View的单条语句。


PROCEDURE Clause

Defines a name and optional parameters for a query.

Note  The PROCEDURE clause has been superseded by the PROCEDURE statement. Although the PROCEDURE clause is still supported, the PROCEDURE statement provides a superset of the capability of the PROCEDURE clause and is the recommended syntax.

Syntax

PROCEDURE name [param1 datatype[, param2 datatype[, ...]]

The PROCEDURE clause has these parts:

PartDescription
nameA name for the procedure. It must follow standard naming conventions.
param1, param2One or more field names or parameters. For example:

PROCEDURE Sales_By_Country [Beginning Date] DateTime, [Ending Date] DateTime;

datatypeOne of the primary Microsoft Jet SQL data types or their synonyms.

Remarks

An SQL procedure consists of a PROCEDURE clause (which specifies the name of the procedure), an optional list of parameter definitions, and a single SQL statement. For example, the procedure Get_Part_Number might run a query that retrieves a specified part number.

Notes

  • If the clause includes more than one field definition (that is, param-datatype pairs), separate them with commas.
  • The PROCEDURE clause must be followed by an SQL statement (for example, a SELECT or UPDATE statement).
See Also
DELETE StatementPARAMETERS Declaration
EXECUTE StatementSELECT statement
Microsoft Jet Database Engine SQL Data TypesUPDATE statement
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值