Gossamer Forum
Home : General : Databases and SQL :

CREATE TABLE....

Quote Reply
CREATE TABLE....
Can anyone see a problem with this SQL code? I'm using PHPMyAdmin, which seems to play around with the codes a little. Anyone got any ideas? (this is for a script I'm trying to install on my server....not just creating certain entries).

CREATE TABLE account_type (
id integer unique default nextval ('serial') PRIMARY KEY,
tag VARCHAR (50) NOT NULL
);


Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CREATE TABLE.... In reply to
Your syntax for the id column is wrong.

What properties are you trying to use for the column and what are you wanting to achieve with nextval?

Last edited by:

Paul: Jan 13, 2003, 4:44 PM
Quote Reply
Re: [Paul] CREATE TABLE.... In reply to
I don't really know. I'm simply using the .sql file included with the script (attached is the .sql file I'm trying to execute).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CREATE TABLE.... In reply to
Erm, andy, that code is for POSTGRES not MySQL.
Quote Reply
Re: [Paul] CREATE TABLE.... In reply to
Mmmm...interesting :/ Looking at it closer, it doesn't seem to support MySQL Crazy

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CREATE TABLE.... In reply to
You didn't exactly have to look close. The first line says "Postgres"

Last edited by:

Paul: Jan 14, 2003, 2:57 AM
Quote Reply
Re: [Paul] CREATE TABLE.... In reply to
Does anyone know of a good PHP/Perl and MySQL financial management tool in GPL?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CREATE TABLE.... In reply to
Financial management tool meaning?
Quote Reply
Re: [Paul] CREATE TABLE.... In reply to
I.e ability to track account payments, statements, bills etc, via an online GUI. Basically a web-based version of Quicken, but obviously a bit more simple Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CREATE TABLE.... In reply to
Sage? You'll need to spend some money, but recently I've personally found that spending money on a product that works saves me hours in trying to get a half-baked Sourceforge project to work.

- wil
Quote Reply
Re: [Wil] CREATE TABLE.... In reply to
I don't/havn't really ever liked Sage. I would prefer Quicken really Tongue

Thanks for the idea though.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!