home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.oracle
- Path: sparky!uunet!caen!saimiri.primate.wisc.edu!zazen!news
- From: nmrdb@vms.macc.wisc.edu (BEVERLY SEAVEY)
- Subject: What is correct Pro*C syntax for selecting max?
- Message-ID: <1992Dec17.190734.21075@macc.wisc.edu>
- Sender: news@macc.wisc.edu (USENET News System)
- Organization: University of Wisconsin Academic Computing Center
- Date: 17 DEC 92 13:01:12
- Lines: 18
-
- I'm writing a Pro*C program that needs to select a maximum on a column.
-
- If I write the Pro*C as
-
-
- EXEC SQL SELECT max(seq_number)
- INTO :max_seq
- FROM protein_sequence
-
- It hangs up. Removing the max fixes things, but that isn't the result
- I want.
-
- Sqlplus is perfectly happy with the analogous statement:
-
- SELECT mac(seq_number)
- FROM protein_sequence;
-
- IS it possible to do this in Pro*C?
-