mwhuen
asked on
DBM or DBI?
can any one explain to me DBM and DBI?
and their difference? their uses?
and their difference? their uses?
ASKER
So, what should I use when I have a "Q&A" web site and I want to store the data more systematically so that I can sort my data, and do insertions, do changes, and do deletion.
I am using web hosting service, and my host may have MySQL database server soon.
I am using web hosting service, and my host may have MySQL database server soon.
DBM is very primitive DB. For every "table" you can have one field as a key, and one as a result. No binding between tables are provided by DBM. To select on some criteria you have to write loops and traverse all records in your table.
DBI is SQL based. It could handle queries as sophisticated as underlaying DBMS allows.
My recomendation - if you make anything pretending to be complicated - go for DBI. You will spend your time on more interesting things than hardcoding some select statement. This is true, even when most of my programs use DBM. But when I need to extend my first tought is: should I fix this crap, or will I write everything with DBI faster...
Good Look!
DBI is SQL based. It could handle queries as sophisticated as underlaying DBMS allows.
My recomendation - if you make anything pretending to be complicated - go for DBI. You will spend your time on more interesting things than hardcoding some select statement. This is true, even when most of my programs use DBM. But when I need to extend my first tought is: should I fix this crap, or will I write everything with DBI faster...
Good Look!
my suggestion would be that you wait for the MySql DB and then use DBI.
so you can have all the functionality that you want without having to worry about the internal details
so you can have all the functionality that you want without having to worry about the internal details
ASKER
ok,
where can i find the commands of mysql?
i don't even know the command of creating database!
in Pg, it is "createdb", how about in mysql?
how to show all the databases in the server?
after got in my database, how to show all the tables?
Or where can i get a list of all the commands of mysql?
where can i find the commands of mysql?
i don't even know the command of creating database!
in Pg, it is "createdb", how about in mysql?
how to show all the databases in the server?
after got in my database, how to show all the tables?
Or where can i get a list of all the commands of mysql?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
where as DBI is a database access Application Programming Interface (API)
for the Perl Language. The DBI API Specification defines a set
of functions, variables and conventions that provide a consistent
database interface independant of the actual database being used