simple max function?
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 06/18/04
- Next message: Roedy Green: "Re: simple max function?"
- Previous message: calvinrsmith: "Re: 'Microsoft Access Database' with Java."
- Next in thread: Roedy Green: "Re: simple max function?"
- Reply: Roedy Green: "Re: simple max function?"
- Reply: Raquel: "Re: simple max function?"
- Reply: Lee Fesperman: "Re: simple max function?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jun 2004 02:01:32 GMT
This is not legit SQL. I wondered if you could do what I was
attempting here in one statement though.
conn.prepareStatement( "UPDATE vendors SET
highestVendorConfirm=MAX(?,highestVendorConfirm),
vendorTimestamp=MAX(?,vendorTimestamp) WHERE vendorId=?" );
I am using max not in the column-examining sense, but just a function
to pick the bigger of two numbers.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Roedy Green: "Re: simple max function?"
- Previous message: calvinrsmith: "Re: 'Microsoft Access Database' with Java."
- Next in thread: Roedy Green: "Re: simple max function?"
- Reply: Roedy Green: "Re: simple max function?"
- Reply: Raquel: "Re: simple max function?"
- Reply: Lee Fesperman: "Re: simple max function?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]