CREATING A table using a hash in perl

2008-02-08 Thread POLIVEIRA
Hi How do I create a table inside a perl script using a hash to give table name and mysql statements? thanks. -- View this message in context: http://www.nabble.com/CREATING-A-table-using-a-hash-in-perl-tp15353263p15353263.html Sent from the MySQL - General mailing list archive at Nabble.com

Creating a Table With a Default

2007-03-28 Thread Al Sparks
I'm trying to install ProBIND, and I'm running mysql 4.1.20. One of the ProBIND install scripts calls for tables to be created in MySQL, and I've culled it down to this: mysql CREATE TABLE zones ( - id INT(11) DEFAULT '1' NOT NULL AUTO_INCREMENT, - PRIMARY KEY (id) -

Re: Creating a Table With a Default

2007-03-28 Thread Carlos Proal
It makes no sense to use a default value with an auto_increment attribute, which means, the default value is the auto-incremented value. Carlos Al Sparks wrote: I'm trying to install ProBIND, and I'm running mysql 4.1.20. One of the ProBIND install scripts calls for tables to be created

Re: Creating a Table With a Default

2007-03-28 Thread Al Sparks
It makes no sense to use a default value with an auto_increment attribute, which means, the default value is the auto-incremented value. Carlos Hmmm... I see your point. I sort of figured that the default was an initial value, and from there, it incremented when accessed. Sort of weird

Re: Creating new table from distinct entries

2006-10-24 Thread Visolve DB Team
] To: mysql@lists.mysql.com Sent: Tuesday, October 24, 2006 12:47 AM Subject: Creating new table from distinct entries MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a problem with the record

Creating new table from distinct entries

2006-10-23 Thread Alan Milnes
MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a problem with the record (MyError)- I want to create a new table that only has unique MyIDs and where there is more than 1 I only want the

Re: Problem with syntax 4 creating 1 table

2005-10-26 Thread Michael Stassen
Rhino wrote: - Original Message - From: Ed mailto:[EMAIL PROTECTED] To: mysql@lists.mysql.com mailto:mysql@lists.mysql.com Sent: Tuesday, October 25, 2005 6:40 PM Subject: Problem with syntax 4 creating 1 table Shawn green was very kindly helping me ouy trying

Problem with syntax 4 creating 1 table

2005-10-25 Thread Ed
Shawn green was very kindly helping me ouy trying to make mysql tables and I thought I had go the hang of it until I get this error-any ideas? Thanks a lot CREATE TABLE PurchasedProducts( `int_saleCart` INT AUTO_INCREMENT NOT NULL ,`int_ClientID` INT,`int_ProductID` INT,`int_Quantity`

Re: Problem with syntax 4 creating 1 table

2005-10-25 Thread Michael Stassen
Ed wrote: Shawn green was very kindly helping me ouy trying to make mysql tables and I thought I had got the hang of it until I get this error-any ideas? Thanks a lot CREATE TABLE PurchasedProducts( `int_saleCart` INT AUTO_INCREMENT NOT NULL , `int_ClientID` INT, `int_ProductID` INT,

Re: Problem with syntax 4 creating 1 table

2005-10-25 Thread Rhino
- Original Message - From: Ed To: mysql@lists.mysql.com Sent: Tuesday, October 25, 2005 6:40 PM Subject: Problem with syntax 4 creating 1 table Shawn green was very kindly helping me ouy trying to make mysql tables and I thought I had go the hang

Creating a table on MySQL from Access

2005-10-18 Thread Scott Hamm
Is there a way I can create a table on MySQL using Access and establish a link remotely? -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Creating a table on MySQL from Access

2005-10-18 Thread SGreen
Scott Hamm [EMAIL PROTECTED] wrote on 10/18/2005 09:46:20 AM: Is there a way I can create a table on MySQL using Access and establish a link remotely? -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html You can write some

RE: Creating a table on MySQL from Access

2005-10-18 Thread Mikhail Berman
] Sent: Tuesday, October 18, 2005 9:46 AM To: 'Mysql ' Subject: Creating a table on MySQL from Access Is there a way I can create a table on MySQL using Access and establish a link remotely? -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word

RE: creating first table

2005-01-07 Thread Tom Crimmins
[snip] How can I list the rows and columns. [/snip] http://dev.mysql.com/doc/mysql/en/SELECT.html --- Tom Crimmins Interface Specialist Pottawattamie County, Iowa -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: creating first table

2005-01-07 Thread SGreen
Gerald Preston [EMAIL PROTECTED] wrote on 01/07/2005 01:02:04 AM: Hi! Running mysql on a XP command line. Doing dhow databases list the following; Database Club Mysql Test I did a grant all user id; How can I list the rows and columns. One of these may help: SHOW CREATE TABLE

creating first table

2005-01-06 Thread Gerald Preston
Hi! Running mysql on a XP command line. Doing dhow databases list the following; Database Club Mysql Test I did a grant all user id; How can I list the rows and columns. I tried alter table club add ME varchar( 3)); and get : You have an error in your SQL syntax; check

Creating a table

2004-01-22 Thread Timothy Donahue
We are currently doing an audit of the software installed on all our systems, in an effort to remove as much junk (adware, etc) from the computers as possible. To help give the management staff of the company a good overview of where problems may be, my boss would like an Excel-style summary so

Creating temp table is causing locking?

2003-12-09 Thread Joshua Thomas
%; but every so often it jumps to almost 100% and remains there for some time. My site slows to a crawl. When I check SHOW PROCESSLIST I see a large number of processes in 'Locked' status, and one as 'Creating tmp table'. When I manually kill this process, the server returns to normal. I turned on slow

Creating a Table (wot no GUI?)

2003-05-29 Thread edward
Excuse my naivety but how do I create a Table in MySQL? I can’t find any Text/Windows based programme that allows be to create and edit the table, fields, data types, size etc? I’m not looking for anything complex. Many thanks, Ed Edward Hasted Contact Information: E-mail : [EMAIL PROTECTED]

RE: Creating a Table (wot no GUI?)

2003-05-29 Thread Mike Hillyer
I would suggest myCC -- http://www.mysql.com/downloads/mysqlcc.html Regards, Mike Hillyer www.vbmysql.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 6:45 AM To: [EMAIL PROTECTED] Subject: Creating a Table (wot no GUI?) Excuse my

RE: Creating a Table (wot no GUI?)

2003-05-29 Thread Karam Chand
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 6:45 AM To: [EMAIL PROTECTED] Subject: Creating a Table (wot no GUI?) Excuse my naivety but how do I create a Table in MySQL? I can't find any Text/Windows based programme that allows

Re: Creating a Table (wot no GUI?)

2003-05-29 Thread Becoming Digital
Becoming Digital www.becomingdigital.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, 28 May, 2003 08:45 Subject: Creating a Table (wot no GUI?) Excuse my naivety but how do I create a Table in MySQL? I can't find any Text/Windows based programme

Creating a table in mysql via a php script

2003-02-08 Thread Scott
the username, apssword and database in the top 3 lines, saged the script into a file called create_table.php and gave it permissions of 777 to be safe. What have I missed as its not creating the table. Scott - Before posting

loosing connection to server when creating a table!

2002-10-18 Thread Mickael Bailly
Hello I meet a strange problem: when I create a new table, the mysql cleint loose connection with the server. Synopsis: $ mysqladmin -u mysql -px create temp (no problem reported, /var/lib/mysql got a new directory 'temp') $ mysql -u mysql -px temp mysql create table oups ( id

Creating a table from a query/How to?

2002-05-09 Thread Tim Johnson
Hello: Am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) on RH 7.2. I would like to construct a mysql command that select a unique set of data from one table and creates a table with that data. I think I'm close here, but am still getting errors: The query string

Re: Creating a table from a query/How to?.....

2002-05-09 Thread Tim Johnson
Hello Again: I'm not usually this lucky, but it seems that the trick is to let mysql do more of the work, and I'm happy to go along with that: What I needed is CREATE TABLE EurCount SELECT DISTINCT Country FROM EUR; (with EurCount being nonexistant) I would

Re: Creating a table from a query/How to?.....

2002-05-09 Thread Arjen Lentz
Hi Tim, On Fri, 2002-05-10 at 11:53, Tim Johnson wrote: I'm not usually this lucky, but it seems that the trick is to let mysql do more of the work, and I'm happy to go along with that: What I needed is CREATE TABLE EurCount SELECT DISTINCT Country FROM EUR;

Error creating InnoDB table/MySQL parser bug?

2002-03-01 Thread Borislav Bankov TEEC
Hello, Today, I compiled MySQL (mysql-3.23.49.tar.gz) on a Debian Potato system. I configure'd with following options: ./configure --prefix=/usr/local/mysql --with-innodb make and make install ran without any problems. Then I followed the instructions in the INSTALL-SOURCE file. Everything

Re: Error creating InnoDB table/MySQL parser bug?

2002-03-01 Thread Heikki Tuuri
in 3.23.50. Best regards, Heikki Innobase Oy -Original Message- From: Borislav Bankov TEEC [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Date: Friday, March 01, 2002 5:32 PM Subject: Error creating InnoDB table/MySQL parser bug? Hello, Today, I compiled MySQL (mysql-3.23.49.tar.gz

Creating a table with gif column

2002-02-13 Thread Victoria Reznichenko
Oladejo, Tuesday, February 12, 2002, 9:29:29 PM, you wrote: Oeoen Hi All, Oeoen I am trying to create a mysql table with one of the column to be for Oeoen .gif/jpeg, is there a variable type for gif/jpeg and after creating the Oeoen table, how do I insert the gif file on each record line

Creating a table with gif column

2002-02-12 Thread Oladejo, Tokunboh
Hi All, I am trying to create a mysql table with one of the column to be for .gif/jpeg, is there a variable type for gif/jpeg and after creating the table, how do I insert the gif file on each record line. Toks

Re: Creating MySQL table w/2 primary keys

2001-12-07 Thread A. Clausen
I do it all the time, just go primary key c (a,b) A. Clausen [EMAIL PROTECTED] - Original Message - From: sherzodR [EMAIL PROTECTED] To: Demirchyan Oganes-AOD098 [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 11:58 Subject: Re: Creating

Re: Creating MySQL table w/2 primary keys

2001-12-07 Thread Etienne Marcotte
- From: sherzodR [EMAIL PROTECTED] To: Demirchyan Oganes-AOD098 [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 11:58 Subject: Re: Creating MySQL table w/2 primary keys As far as I know, you can't do tht. What you could do instead is have one Primary Key

RE: Creating MySQL table w/2 primary keys

2001-12-07 Thread Edward Valentine
06, 2001 1:54 PM To: '[EMAIL PROTECTED]' Subject: Creating MySQL table w/2 primary keys Hello everyone, I have this create table statement, drop table IF EXISTS GROUP_CONCLUSION_GROUPING CASCADE; CREATE TABLE IF NOT EXISTS GROUP_CONCLUSION_GROUPING( ANALYSIS_RESULT_ID MEDIUMINT(20) PRIMARY

Creating MySQL table w/2 primary keys

2001-12-06 Thread Demirchyan Oganes-AOD098
Hello everyone, I have this create table statement, drop table IF EXISTS GROUP_CONCLUSION_GROUPING CASCADE; CREATE TABLE IF NOT EXISTS GROUP_CONCLUSION_GROUPING( ANALYSIS_RESULT_ID MEDIUMINT(20) PRIMARY KEY REFERENCES PAD_ANALYSIS_RESULT(ANALYSIS_RESULT_ID), GROUP_CONCLUSION_ID

Re: Creating MySQL table w/2 primary keys

2001-12-06 Thread sherzodR
As far as I know, you can't do tht. What you could do instead is have one Primary Key col and make another one UNIQUE. I did that several times, and it does work! -- What they need to teach in school is for people to think for themselves. :-) -- Larry Wall in [EMAIL PROTECTED]

Re: Creating MySQL table w/2 primary keys

2001-12-06 Thread rc
why not use a concatenated Primary key? create table tname col_name1 int, col_name2 int, PRIMARY KEY (col_name1,col_name2) you get the drift On Thu, 6 Dec 2001, sherzodR wrote: As far as I know, you can't do tht. What you could do instead is have one Primary Key col and make

Re: Re: Creating MySQL table w/2 primary keys

2001-12-06 Thread rc
On 6 Dec 2001 [EMAIL PROTECTED] wrote: Your message cannot be posted because it appears to be either spam or simply off topic to our filter. To bypass the filter you must include one of the following words in your message: database,sql,query,table If you just reply to this message, and

Re: Creating MySQL table w/2 primary keys

2001-12-06 Thread Etienne Marcotte
using primary key (col1, col2) makes no index on col2... which is not good if you lookup only in col2 primary key (col1), unique index (col2) don't forget to add not null beside your col2 definition. Etienne rc wrote: why not use a concatenated Primary key? create table tname

Re: Creating MySQL table w/2 primary keys

2001-12-06 Thread Etienne Marcotte
I found a way to have two primary key, if those keys relate on many columns. mysql create table keytest( - col1 int not null, - col2 int not null, - unique index (id1,id2), - unique index (id2,id1) Query OK, 0 rows affected (0.01 sec) mysql describe keytest;

Re: Creating MySQL table w/2 primary keys (fwd)

2001-12-06 Thread rc
for a table in a database (just so my message makes it to the list): can you make a concatenated primary key, then make the second one an index? - Before posting, please check: http://www.mysql.com/manual.php (the

RE: Creating MySQL table w/2 primary keys

2001-12-06 Thread Quentin Bennett
December 2001 9:42 a.m. To: sherzodR Cc: Demirchyan Oganes-AOD098; '[EMAIL PROTECTED]' Subject: Re: Creating MySQL table w/2 primary keys I found a way to have two primary key, if those keys relate on many columns. mysql create table keytest( - col1 int not null, - col2 int not null