Re: PHP & PostgreSQL

From: Date: Mon, 30 Dec 2002 13:57:04 +0000
Subject: Re: PHP & PostgreSQL
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-129658@lists.php.net to get a copy of this message
> >o Pg doesn't have DATE_FORMAT() > to_char() accomplishes the same thing, for example: > select to_char(lastlogin, 'FMMM-DD-YYYY FMHH:MI AM') as lastloginf > from users; Unless I missed something, that function doesn't work with unix timestamps. Is there anythin internal to PG that allows you to convert to and from unix timestamps? >, or the types SET and ENUM. > >o Changing database structure is harder. With PG, I usually found it > > easier to dump, edit, then reload the database to make changes I did > > in MySQL with ALTER TABLE. > True, changing schema is a major PITA with Postgres. My only real > complaint about it, in fact... That's how I did it and it was, indeed, a pain in the butt... But there was some good that came out of it. When I created the MySQL tables, I didn't have foreign keys (wasn't using InnoDB), constraints or anything like that so in recreating the tables, I was able to implement those things to make life easier down the road when reworking the code and the logic. Chris

« previous php.general (#129658) next »