RE: [PHP-DB] foreign key problem

2001-01-31 Thread Bob Hall
Yes sir, you are correct. Thank you for correcting me. In practice, a NULL in a foreign key almost always means an orphan record. In most applications the designer will want to use the NOT NULL constraint. Bob Hall A foreign key value can be null, if it suits the data application

Re: [PHP-DB] the SET datatype

2001-02-09 Thread Bob Hall
. Is there anyway of doing this? Please help? [EMAIL PROTECTED] No sir. The members of the SET have to be entered as constant values in the column definition. Bob Hall Know thyself? Absurd direction! Bubbles bear no introspection. -Khushhal Khan Khatak -- PHP Database Mailing List (http

Re: [PHP-DB] rewriting this query to remove IN

2001-02-12 Thread Bob Hall
ppreciated. Scott Mebberson Sir, I can't offer suggestions without knowing what the subquery is. Bob Hall Know thyself? Absurd direction! Bubbles bear no introspection. -Khushhal Khan Khatak -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DB] MySQL execution order...

2001-02-23 Thread Bob Hall
Sir, it would help to see the INSERT statement and the table definition. Bob Hall I sent this message to the "general" list yesterday, and have yet to get an answer (except for that Spanish "Snow White" virus attempt from Peru). I'm trying to download info from a table as

Re: [PHP-DB] Re: PostgreSQL versus MySQL

2001-04-09 Thread Bob Hall
On Sun, 8 Apr 2001, Bob Hall wrote: Doug, You've posted your usual good sense, combined with one statement I strongly disagree with. One of these products is a relational database management system. The other is a quasi-SQL-like-front-end-to-systems-of-indexed-files

Re: [PHP-DB] Re: PostgreSQL versus MySQL

2001-04-10 Thread Bob Hall
PostgreSQL to become the open source app that ate Oracle. MySQL will never be capable of that, but I don't think it needs to be. There will always be a niche for small, quirky apps that have just enough functionality to get the job done and keep the learning curve short and shallow. Bob Hall Kn

Re: [PHP-DB] Re: PostgreSQL versus MySQL

2001-04-11 Thread Bob Hall
On Mon, 9 Apr 2001, Bob Hall wrote: MySQL is providing an SQL frontend to a bunch of tables and indices, that is it ... it is up to the programmer to handle the "managing of data" part where it revolves around being relational ... I've developed database app

Re: [PHP-DB] SELECT question

2001-05-17 Thread Bob Hall
carts.custId = '$custId' AND items.itemId = carts.itemId GROUP BY itemId; Bob Hall Know thyself? Absurd direction! Bubbles bear no introspection. -Khushhal Khan Khatak MySQL list magic words: sql query database -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP-DB] Use of Like

2001-07-09 Thread Bob Hall
online manual. Bob Hall Know thyself? Absurd direction! Bubbles bear no introspection. -Khushhal Khan Khatak MySQL list magic words: sql query database -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP-DB] How can recommend a book for SQL and DB design

2002-01-15 Thread Bob Hall
to see what has changed, especially for SQL. But it covers the basics of SQL and performance better than anything else. Almost all your beginning questions will be answered there. For a more advanced treatment of performance, Jeremy's book sounds like the best bet, when it comes out. Bob

Re: [PHP-DB] group by get last record

2003-03-16 Thread Bob Hall
return the first slide. People who have tested GROUP BY statements say that the value returned from columns with no aggregate function is somewhat random. Bob Hall -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Is the query I need even possible?

2003-03-19 Thread Bob Hall
() for Max() to get the earliest visit. Bob Hall -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] storing serialized() data in the db - can it be queried on?

2003-08-18 Thread Bob Hall
a seperate table for the array, with a foreign key that points back to the record in the original table. That will make retrieving data a lot easier; e.g. you can do a query with a join and WHERE thisField = 'john'. Bob Hall -- PHP Database Mailing List (http://www.php.net/) To unsubscribe