Re: NULL columns

2006-03-16 Thread Heikki Tuuri
Hi! - Original Message - From: ""Martijn Tonies"" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Thursday, March 16, 2006 8:59 PM Subject: Re: NULL columns When doing an insert using NULL in the insert request, what really is being wri

Re: NULL columns

2006-03-16 Thread Martijn Tonies
> When doing an insert using NULL in the insert request, > what really is being written in the column? > Is the word NULL being written? > Is any real space being consumed? In the cases that you really want to store NULL ;-) No, it's not the word "null". Of course space is consumed. How m

NULL columns

2006-03-16 Thread fbsd_user
When doing an insert using NULL in the insert request, what really is being written in the column? Is the word NULL being written? Is any real space being consumed? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PRO

Re: GIS - NULL columns

2004-11-10 Thread Gleb Paharenko
Hello. Remove coma from 'POINT(1,1)', instead use 'POINT(1 1)'; See: http://dev.mysql.com/doc/mysql/en/Populating_spatial_columns.html >I installed mySQL server from Wizard and then i create table: >create table geom ( g POINT) ENGINE = MYISAM; >but i can't add any object to the table

Re: GIS - NULL columns

2004-11-10 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Rafal K." <[EMAIL PROTECTED]> writes: > I installed mySQL server from Wizard and then i create table: > create table geom ( g POINT) ENGINE = MYISAM; > but i can't add any object to the table. I wrote: > insert into geom values(PointFromText('POINT(1,1)')); > and t

GIS - NULL columns

2004-11-10 Thread Rafal K.
I installed mySQL server from Wizard and then i create table: create table geom ( g POINT) ENGINE = MYISAM; but i can't add any object to the table. I wrote: insert into geom values(PointFromText('POINT(1,1)')); and then i saw in the table NULL values: SELECT AsText(g) FROM geom; | g

RE: inserting null to not null columns

2004-09-21 Thread Thomas Lundström
nt of dirty data between different systems. Be careful when not including NOT NULL columns in your inserts... To get around the problem and get more background info, read: http://dev.mysql.com/doc/mysql/en/constraint_NOT_NULL.html Regards, Thomas Lundström, Ongame E-Solutions AB -Ori

inserting null to not null columns

2004-09-21 Thread Donna Hinshaw
Hi folks: I have an InnoDB database, the tables created using MySQL Control Center 0.9.4-beta (winXP pro platform). Each table has some columns which I have checked as Nulls Allowed. I am building a pure Java GUI to the database. Got the SQL statements working fine, but have discovered that I c

Re: null columns after loading

2001-09-24 Thread Carl Troein
GUYOT Carole writes: > I'm trying to insert records from a file. These records are separated > with pipes. > > load data local infile "aid.exp" into table aid; How is MySQL supposed to know that you're using a non-standard way of separating your records if you don't tell it? :-O You need to sp

null columns after loading

2001-09-24 Thread GUYOT Carole
I'm trying to insert records from a file. These records are separated with pipes. use crous; load data local infile "aid.exp" into table aid; When I do "select * from aid" , the first column is OK but the second and third columns are nulls for all rows. It's weird! Has anyone experienced t

Re: Average of all NON-NULL columns in a ROW?

2001-05-22 Thread Graeme B. Davis
No, I'm looking for the average of all not NULL columns inside a certain _record/row_. There are other columns in the each row. Right now I have to do this: (these are survey questions, which don't necessarily need to be answered) SELECT IF(q1a,@cnt:=1,@cnt:=0), IF(q1b,@cnt:=@cnt+1,

Re: Average of all NON-NULL columns in a ROW?

2001-05-22 Thread Peter Pentchev
MAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, May 22, 2001 11:29 AM > Subject: Average of all NON-NULL columns in a ROW? > > > > Is there a way to get the AVG of all specified NON-NULL columns in one > row? > > Right now I am doing this in a litt

Re: Average of all NON-NULL columns in a ROW?

2001-05-22 Thread Cal Evans
Select avg(id1) from where id1 is not null; ? - Original Message - From: "Graeme B. Davis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 22, 2001 11:29 AM Subject: Average of all NON-NULL columns in a ROW? > Is there a way to get the AVG

Re: Average of all NON-NULL columns in a ROW?

2001-05-22 Thread Peter Pentchev
On Tue, May 22, 2001 at 12:29:35PM -0400, Graeme B. Davis wrote: > Is there a way to get the AVG of all specified NON-NULL columns in one row? > Right now I am doing this in a little script, but it would be nice if I > could do something like this: > > DATA > - &g

Average of all NON-NULL columns in a ROW?

2001-05-22 Thread Graeme B. Davis
Is there a way to get the AVG of all specified NON-NULL columns in one row? Right now I am doing this in a little script, but it would be nice if I could do something like this: DATA - id1044NULL3NULL I want the average of 0,4,4,3 ie (0+4+4+3)/4 is there a way

Re: UNIQUE with NULL columns

2001-03-07 Thread Rimantas Liubertas
Hello john, Thursday, March 08, 2001, 12:19:22 AM, you wrote: jrd> with MySQL 3.23.33 on Linux, shouldn't UNIQUE columns that contain NULL jrd> values still reject rows that are the same? this isn't working (it allows jrd> duplicate rows to be included if one of the columns is NULL). this seem

UNIQUE with NULL columns

2001-03-07 Thread john r. durand
with MySQL 3.23.33 on Linux, shouldn't UNIQUE columns that contain NULL values still reject rows that are the same? this isn't working (it allows duplicate rows to be included if one of the columns is NULL). this seems wrong. here's an example: mysql> create table n ( i