home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbnumorders.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  837 b   |  30 lines

  1. .Na "DBNUMORDERS" 
  2. .Aa
  3. .Fu
  4. Return the number of columns specified in a \*N SELECT statement's ORDER BY clause.
  5. .Ih "ORDER BY clause, number of columns in"
  6. .Sy
  7. .Sf "int DBNUMORDERS(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. Once a SELECT statement has been executed and \f2dbresults()\f1 has been called to process it, 
  12. the application can call
  13. .I "DBNUMORDERS()"
  14. to find out how many columns were specified in the statement's ORDER BY clause.
  15. .Bz
  16. .Pa
  17. .Pi dbproc
  18. A pointer to the DBPROCESS structure that provides the connection
  19. for a particular front-end/\*S process.  It contains all the
  20. information that \*L uses to manage communications and data between the
  21. front end and \*S.
  22. .in -.375i
  23. .Re
  24. .br
  25. The number of ORDER BY columns.
  26. If there's no ORDER BY clause, this routine returns 0.
  27. If there's an error, it returns -1.
  28. .Sa
  29. dbordercol
  30.