• C

designing a dbms using c

creating a dbms using c is the project i am  intending to do.The database
should respond to queries similar to sql queries.So i need help regarding
1. in which way the contents of a table should be stored in a data dictionary
2.How  to process a query " create table <tablename>( variable1 datatype,var2 dt,...);"
      that is , is it a good approach to handle all possible mistyped commands at the
       very beginning.If that is not the case i have to change the entaire code
      for any modification later.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if i understood you correctly, you will need one multi-dimensional array (sort of a data dictionary) that will store the table names , a pointer to a linked list (or any other dynamic structure) that describes the table columns. and of course pointer to the actual table.
the table data should be stored in a tree/forest to allow you to scan the data efficiently.
about the commands: processing them is equivalent to building a parser or a compiler you should read about that
to get a better idea of how to do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nothing has happened on this question in more than 9 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
accept answer by oferh [grade B] (just a hint, not a solution).


EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.