[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Relational Database Connectivity

webmaster@zope.org webmaster@zope.org
Thu, 12 Dec 2002 10:56:14 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases.stx#2-28

---------------

    Next you can specify *arguments* to the Z SQL Method. Just like
    Scripts, Z SQL Methods can take arguments. Arguments are
    used to construct SQL statements.  In this case your method needs
    four arguments, the employee id number, the first name, the last
    name and the employee's salary.  Type "emp_id first last salary"
    into the *Arguments* field. You can put each argument on its own
    line, or you can put more than one argument on the same line
    separated by spaces. You can also provide default values for
    argument just like with Python Scripts. For example, 'empid=100'
    gives the 'empid' argument a default value of 100.

      % Anonymous User - Dec. 12, 2002 10:56 am:
       I presume you meant to say "emp_id=100 gives the emp_id argument"