Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Pervasive.SQL > Dynamic input to queries ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-01-08, 06:42
tsatya tsatya is offline
Registered User
 
Join Date: Dec 2007
Posts: 3
Dynamic input to queries ???

Hi,

WISH U A HAPPY NEW YEAR

I'm queriying temp table.
I want to give a different input while executing the query(it should ask the value for the parameter).
In oracle I can do like this,
SELECT * FROM "temp" where yearno=&yearnumber

What to do in Pervasive SQL ???

Rgds,
Satya

Last edited by tsatya : 01-02-08 at 01:23.
Reply With Quote
  #2 (permalink)  
Old 01-01-08, 10:55
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
How you pass parameters to PSQL depends on the interface you are using.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 01-02-08, 01:21
tsatya tsatya is offline
Registered User
 
Join Date: Dec 2007
Posts: 3
Hi,

I'm executing the following queries in SQL Data Manager.

SELECT * FROM "temp" where yearno=2006
SELECT * FROM "temp" where yearno=2007
SELECT * FROM "temp" where yearno=2008
and so on

So I want to give the yearno while I'm executing the query.
In oracle I can use Substitution variables(yearno can be given while executingthe query).

Is it possible in Pervasive ???

Rgds,
Satya
Reply With Quote
  #4 (permalink)  
Old 01-02-08, 08:57
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
Short answer, no.
The SQL Data Manager (and all Pervasive tools) are good for troubleshooting but not so good for front end development.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 01-09-08, 12:26
yy17616433 yy17616433 is offline
Registered User
 
Join Date: Jan 2008
Posts: 2
Your speech is very nice!
__________________
Slam DunkYuYu Hakushoclaymore
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On