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

webmaster at zope.org webmaster at zope.org
Sun Nov 9 19:28:33 EST 2003


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

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

    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, 'emp_id=100' gives the 'emp_id'
    argument a default value of 100.

      % Anonymous User - Nov. 9, 2003 7:28 pm:
       When I put arguments in a row, it did not work.
       But if it is typed as a column, it works.



More information about the ZDP mailing list