473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

dealing data in a file as in a db (with sql). How?

Hallo,
I have read about dealing data in a file with sql.
I mean to use some function to insert, select, modify data in a simple
file as a db (with sql).
Which library let that?
Thank you in advance,
Mario.
Oct 14 '06 #1
4 1016
On Sat, 14 Oct 2006 13:32:02 +0200, "_mario.lat" <_m********@libero.itwrote:
>Hallo,
I have read about dealing data in a file with sql.
I mean to use some function to insert, select, modify data in a simple
file as a db (with sql).
Which library let that?
Thank you in advance,
Mario.

You need to go to a book store and get a decent book on PHP/MySQL and start reading. Here is what I
started out with.
http://www.amazon.com/MySQL-Developm...536834?ie=UTF8

or type luke welling php in searchs
Oct 14 '06 #2
I think he wants to treat a flat file as a mysql database. If you are
serious about it i would suggest you look up hashing to disk. I dont
know of any ways to treat a flat file like a database in PHP, only perl
with CSV. You would have to create any functionality.

I have only delt with flat files if i know it wont get too long, mainly
because searching is a pain in the butt, ordering helps but not if you
are going to sort by multiple fields.

In order to help out a bit, let us know what you are actually trying to
do, your goal. That would help us get the ball rolling and better help
you out.

Bob

Oct 14 '06 #3
bo*********@gmail.com wrote:
I think he wants to treat a flat file as a mysql database. If you are
serious about it i would suggest you look up hashing to disk. I dont
know of any ways to treat a flat file like a database in PHP, only perl
with CSV. You would have to create any functionality.

I have only delt with flat files if i know it wont get too long, mainly
because searching is a pain in the butt, ordering helps but not if you
are going to sort by multiple fields.

In order to help out a bit, let us know what you are actually trying to
do, your goal. That would help us get the ball rolling and better help
you out.

Bob
A flat file database that has been around a long time is Berkeley
database. You can select between a C\C++ or Java driven database. For
years it was the product of Sleepycat but Big Brother owns it now at Oracle.

http://www.oracle.com/database/berkeley-db/index.html

Another one that that is newer is a C based DB called SQLite.
http://pecl.php.net/package/SQLite

You will not have any problems searching these database because they
support SQL.

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Oct 14 '06 #4
Thank you to all!
It is what I'm looking for!
A flat file database that has been around a long time is Berkeley
database. You can select between a C\C++ or Java driven database. For
years it was the product of Sleepycat but Big Brother owns it now at Oracle.

http://www.oracle.com/database/berkeley-db/index.html

Another one that that is newer is a C based DB called SQLite.
http://pecl.php.net/package/SQLite

You will not have any problems searching these database because they
support SQL.
Oct 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Robert Hicks | last post by:
I need to pull data out of Oracle and stuff it into an Excel spreadsheet. What modules have you used to interface with Excel and would you recommend it? Robert
2
by: Wayne | last post by:
This is probably simple but: The following portion of an SQL statement that I've copied from the SQL view of the query grid (the query works fine) is giving me an error to the effect that it is...
6
by: m | last post by:
Hello, I have an application that processes thousands of files each day. The filenames and various related file information is retrieved, related filenames are associate and placed in a linked...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
5
by: Stephen Cawood | last post by:
I'm trying to use a C++ .lib from C# (I tried the Interop group will no results). I have a working wrapper DLL (I can get back simple things like int), but I'm having issues dealing with an array...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
1
by: seeCoolGuy | last post by:
I've been using Access to import some data straight into a sql server database by simply importing the xml file. However lately some of the newer xml files will contain vaild data such as ...
4
by: Richard Carpenter | last post by:
My wife and I share a laptop. When she is using it, I must do my development on my PC. I have SQL Server 2005 Express installed on both, but the instances are named differently. Therefore, I need...
6
by: =?Utf-8?B?RENX?= | last post by:
Hello all: I have a situation where I need to read a text file containing several million rows (insurance eligibility files). In additional to sequential operations, I also need to support a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.