SQL for flat file database


 
Thread Tools Search this Thread
Top Forums Programming SQL for flat file database
# 1  
Old 08-09-2010
SQL for flat file database

I have a B+ tree flat file database which is used by the application we use.

I would like to implement a SQL kind of access for that DB.

I have implemented my data structures to parse and store the user written query for execution.

But i would like to know, do we have any standard data structures to store that SQL value, for execution purpose.

Please let me know about interfaces available in C.

Thanks
Kumaran
# 2  
Old 08-09-2010
I have never come across any published standard data structures to store SQL queries for execution purposes. Generally such structures are specific to a particular database and are not standardized as there simply is no reason to.
This User Gave Thanks to fpmurphy For This Post:
# 3  
Old 08-10-2010
One more question.

I have the database server running in node 1 and processing requests from node2.

Suppose if node2 sends a select query for a big table, how do i transmit data from node1 to node2. Please suggest me.

Should i do in the generator form that is as and when the user navigates through the result set, i send more rows for further navigation. this would give me advantage that my response to node2 would be fast becuase i don't have to send all rows to node to complete the response.

But when i do so, i must keep the table in tact between the send() calls, otherwise i have to keep a copy of selected rows. Please advice me.

Any new ideas to do this.

Thanks
Kumaran
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SQL compare database

Hi , I have 2 databases which has same table names and I need to list entries of a particular table in database1 not existing in the same tablename of database2. eg : I have db1 having table name orders ad_d | code | start | end | amountscore | id | amount_class |... (1 Reply)
Discussion started by: siya@
1 Replies

2. Shell Programming and Scripting

SQL query in UNIX script - output in flat file

Hi, I never did this before... what I want to do is execute a SQL query from a unix script and redirect sql query's output to a flat file (comma separated one) without the header info (no column names). I would also want not to print the query's output to the screen. snapshot of my script:... (13 Replies)
Discussion started by: juzz4fun
13 Replies

3. Programming

pls. help with SQL database...

On the Linux systems, we have scripts which monitor disk usage. I want to take that data and feed that into SQL database. Can you give some advise. For example here is one of the file. I have many files like this but the format is same... 2012-09-24 04:36:14 2012-09-24 04:36:16 48414984... (3 Replies)
Discussion started by: samnyc
3 Replies

4. Shell Programming and Scripting

SQL in LINUX. Variable or Database

Dear Friends :-), Need your help once again. I have following SQL in a shell script to pick values from database select date_stamp, time_stamp from logs where date=31012012 However, at times we need to take these value(s) from a variable. To do this we have following query. select... (2 Replies)
Discussion started by: anushree.a
2 Replies

5. Shell Programming and Scripting

Looking for a flat database library

Hello there, At my formal company, there was a flat database library that was very convenient to use (under Unix Solaris) Here is an example: The below file (say printerslice) was used to store data of our printers. We used it to ftp files to printers. You could query the db as ... (2 Replies)
Discussion started by: pthomsin
2 Replies

6. UNIX for Dummies Questions & Answers

shell/sql to get difference between two database

I have two queries query1 select IDW_SITE_NAME REGION,a.location_sid,a.CALENDAR_SID,count(*) from idw.vod_stream a, IDW_REF_DATA b where a.location_sid = b.location_sid and a.calendar_sid between 20110901 and 20110915 --this is start date parameter and end date parameter and... (5 Replies)
Discussion started by: qutesanju
5 Replies

7. UNIX for Advanced & Expert Users

Flat file "database"

I'm wondering about the best way to store large amounts of sorted data, sorted by date/time, in a manner to allow fast retrieval of ranges of dates. Deletion isn't necessary. A database hardly seems ideal, since they're not optimized for sorted data, and allow things I don't need like the... (18 Replies)
Discussion started by: Corona688
18 Replies

8. Shell Programming and Scripting

(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script

Hi, I need help urgently for following issue. Pls help me to resolve this issue. I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql) I given... (6 Replies)
Discussion started by: praka
6 Replies

9. Shell Programming and Scripting

Uploading a flat file into the database.

I want to upload a text file into the database. what is the command for that? Thanks in Advance. (1 Reply)
Discussion started by: Balkrishna
1 Replies

10. UNIX for Advanced & Expert Users

How to write Flat Files by shell script using Oracle Database

Hello There.. I came to a situation where I need to write flat files using shell scripts, I need to pull the records from the oracle database and create the flat file, This process should be automated. Can any shell script expert out here to help me.. please.. Will be really glad to... (3 Replies)
Discussion started by: coolbuddy
3 Replies
Login or Register to Ask a Question