Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: D Finnigan Newsgroups: comp.sys.apple2 Subject: My database schema, was Re: Retro computer collection... Date: Sat, 25 Jul 2015 17:01:09 +0000 (UTC) Organization: Mac GUI Lines: 23 Message-ID: References: <1195163374458993638.983494europlus-mcnamaras.id.au@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 25 Jul 2015 17:01:09 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ac9e0e4d7dd3957fb97803ee6801bab8"; logging-data="788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3lC68WJ/irV/Atf3ZzD+s" User-Agent: Mac GUI Usenet In-Reply-To: Cancel-Lock: sha1:us/7J4usAGZ+W4mdFiNY09WSWbs= Xref: csiph.com comp.sys.apple2:25421 This is really spartan, but it gets the job done for me. I am willing to improve it, but contact me near the end of August because I'm too busy now to devote time to it. CREATE TABLE IF NOT EXISTS `items` ( `item_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `obtained_from` varchar(255) NOT NULL DEFAULT '', `obtained_date` varchar(255) NOT NULL DEFAULT '', `price` varchar(50) NOT NULL DEFAULT '', `serial_no` varchar(255) NOT NULL DEFAULT '', `part_no` varchar(255) NOT NULL DEFAULT '', `notes` text NOT NULL, PRIMARY KEY (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- ]DF$ The Marina IP stack for Apple II-- http://marina.a2hq.com/