![]() |
|
#1
|
|||
|
|||
MySQL problem: SELECT * FROM event WHERE name is null ;I had a newline at the end of my input file and now have this table:
Code:
|
|||
|
#2
|
|||
|
|||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Code:
|
|
#3
|
||||
|
||||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Yes that definitely seems strange, but your queries worked for me:
Code:
The above example, on the machine I'm using at the moment, has: Server version: 5.0.41-community-nt MySQL Community Edition (GPL) __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#4
|
|||
|
|||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Code:
Last edited by Howard_L : 03-Aug-2008 at 11:20.
|
|
#5
|
||||
|
||||
Re: mysql problem: SELECT * FROM event WHERE name is null ;I tried loading the file on XP, but it didn't do anything with the extra blank line. Only 4 rows were inserted.
Let me try with a Fedora machine that I have and I'll post again with results. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#6
|
||||
|
||||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Ok, different results!
Code:
Hmmm, I'll have to ponder this a little more. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#7
|
||||
|
||||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Ok, after trying some of the other options available for 'load data...' without success, it seemed easier to 'pre-scrub' the file to eliminate all blank lines.
The command using sed is: Code:
Then do the 'load data...' command using the temp file. HTH __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#8
|
|||
|
|||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Code:
Last edited by Howard_L : 03-Aug-2008 at 14:18.
|
|
#9
|
||||
|
||||
Re: mysql problem: SELECT * FROM event WHERE name is null ;Quote:
EDIT: Quote:
Code:
Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cpanel downgrade MYSQL 4.1.X to MySQL 4.0.xx | Webhosting-live | Web Hosting Forum | 1 | 01-Sep-2006 03:54 |
| [Tutorial] Pointers in C (Part I) | Stack Overflow | C Programming Language | 1 | 08-Apr-2005 19:35 |
| Starting Mysql server problem | pjacks | MySQL / PHP Forum | 23 | 08-Sep-2004 18:23 |
| A problem Between MySQL <> phpBB | mirable | MySQL / PHP Forum | 3 | 10-Sep-2003 06:31 |
| select problem | zuzupus | MySQL / PHP Forum | 0 | 15-Aug-2003 08:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The