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

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
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.

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.