Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: %d and %s variables


Message #1 by Jefferis Peterson <jefferis@p...> on Mon, 21 Oct 2002 09:16:05 -0400
These are not part of the SQL language, but rather output formatting
specifiers for the sprintf() function of your programming language.

--
Jeff Mason			Custom Apps, Inc.
Jeff@c...

-----Original Message-----
From: Jefferis Peterson [mailto:jefferis@p...]
Sent: Monday, October 21, 2002 9:16 AM
To: sql language
Subject: [sql_language] %d and %s variables


I notice that in a lot of query examples using variables
Like this:
> $query_limit_yellow = sprintf("%s LIMIT %d, %d", $query_yellow,
> $startRow_yellow, $maxRows_yellow);

 these seemingly undefined items "%s %d, %d"  are used.


Could someone please explain why or how these things work?

Jeff


~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.net
Tel .  xxx-xxx-xxxx
ICQ 19112253

http://www.Slippery-Rock.com - 7,000 hits per year




  Return to Index