Queener Posted May 19, 2015 Share Posted May 19, 2015 I'm building a database to store inventories into sql. The sql part is done already; just the way of building the interface and coding with autoit that I need to finish. I would like suggestions on which method is easier for this project.The project includesAssetTag | Model # | Serial # | Location | Department | Floor | Room Is it easier to store Model#, Location, Department, and floor into a ini file for combo box usage? The reason I rather not hard code it to the autoit project is because I will need to add new info on those listed later as new equipments will be bought to replace or there will be a department upgrade, etc... If you have a better way; an example would be appreciated. Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.") Link to comment Share on other sites More sharing options...
jchd Posted May 19, 2015 Share Posted May 19, 2015 What is the database schema?And no, a database never needs accompanying .INI files (nor other formats), that would totally compromize data integrity and jeopardize concurrent accesses! This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Queener Posted May 19, 2015 Author Share Posted May 19, 2015 I set it up asTable = InventoryColumns asAssetTag | Model # | Serial # | Location | Department | Floor | Room Just one table since it's a simple database. Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.") Link to comment Share on other sites More sharing options...
kylomas Posted May 19, 2015 Share Posted May 19, 2015 asianqueen,What do you mean by "The sql part is done already"?Interface for managing entries in the DB (add, delete, modify)?kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
jchd Posted May 19, 2015 Share Posted May 19, 2015 OK but what is the actual SQL schema? In other words, which SQL statement(s) di you use to create the table, and to insert/update rows in it?Are Location | Department | Floor | Room text columns? If yes how will you manage things when a location, department, ... needs to have its name changed? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Skysnake Posted May 20, 2015 Share Posted May 20, 2015 Asianqueen, jchd is looking for something like this. Which database are you using, and what is the SQL CREATE command used?; ............................... create table players $query = "CREATE TABLE if not exists players ( " _ & "PlayerNum integer unique not null, " _ & "PlayerName, " _ & "PlayerInit, " _ & "ScoreCountback, " _ & "ScoreFinal " _ & ");" Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now