![]() | |
#1
| |||
| |||
|
|
Field | Type | Null | Key | Default | Extra | +-------------------+-----------------------+------+-----+---------+-------+ server_id | mediumint(8) unsigned | NO | PRI | NULL | | Message_ID | varchar(80) | NO | MUL | NULL | | Author | varchar(64) | NO | | NULL | | Subject | varchar(132) | NO | | NULL | | Raw_Date | varchar(37) | NO | | 0 | | User_Agent | varchar(132) | YES | | NULL | | NNTP_Posting_Host | varchar(64) | YES | | NULL | | X_Trace | varchar(64) | YES | | NULL | | Content_Type | varchar(64) | YES | | NULL | | Lines | smallint(6) unsigned | YES | | NULL | | Bytes | mediumint(9) unsigned | YES | | NULL | | Xref | varchar(132) | YES | UNI | NULL | | Body | mediumtext | YES | | NULL | | Head | mediumtext | YES | | NULL | | References | mediumtext | YES | | NULL | | Newsgroups | varchar(128) | NO | | NULL | | +-------------------+-----------------------+------+-----+---------+-------+ |
#2
| |||
| |||
|
|
mysql> INSERT INTO testing -> SET server_id = 280578, -> Newsgroups = 'alt.coffee', -> Message_ID = '<8l0rk5584fqtdp2jk4v1e6k0ccq4v64iq4 (AT) 4ax (DOT) com>', -> Author = 'Barry Jarrett <barry (AT) some-coffee (DOT) invalid>', -> Subject = 'Re: coffee quiz', -> Raw_Date = 'Wed, 13 Jan 2010 02:22:22 -0600', -> Xref = 'xyz.dyndns.org alt.coffee:280578', -> Content_Type = 'text/plain; charset=us-ascii', -> Lines = 4; What is it about "Lines" that breaks things? |
#3
| |||
| |||
|
|
While we're at it, what's the best way to convert a Date like Wed, 13 Jan 2010 02:22:22 -0600 into standard MySQL format? |
#4
| |||
| |||
|
|
Steve Ackman: mysql> INSERT INTO testing -> SET server_id = 280578, -> Newsgroups = 'alt.coffee', -> Message_ID = '<8l0rk5584fqtdp2jk4v1e6k0ccq4v64iq4 (AT) 4ax (DOT) com>', -> Author = 'Barry Jarrett <barry (AT) some-coffee (DOT) invalid>', -> Subject = 'Re: coffee quiz', -> Raw_Date = 'Wed, 13 Jan 2010 02:22:22 -0600', -> Xref = 'xyz.dyndns.org alt.coffee:280578', -> Content_Type = 'text/plain; charset=us-ascii', -> Lines = 4; What is it about "Lines" that breaks things? It's a reserved word: http://dev.mysql.com/doc/refman/5.1/...ved-words.html ....yeah as I discovered when I tried to use a table called 'order' |
#5
| |||
| |||
|
|
Steve Ackman: -> Lines = 4; What is it about "Lines" that breaks things? It's a reserved word: http://dev.mysql.com/doc/refman/5.1/...ved-words.html |
#6
| |||
| |||
|
|
In <7vk4u1F6ifU1 (AT) mid (DOT) individual.net>, on 8 Mar 2010 11:21:37 GMT, Erick T. Barkhuis, erick.use-net (AT) ardane (DOT) c.o.m wrote: Steve Ackman: mysql> INSERT INTO testing -> SET server_id = 280578, -> Newsgroups = 'alt.coffee', -> Message_ID = '<8l0rk5584fqtdp2jk4v1e6k0ccq4v64iq4 (AT) 4ax (DOT) com>', -> Author = 'Barry Jarrett <barry (AT) some-coffee (DOT) invalid>', -> Subject = 'Re: coffee quiz', -> Raw_Date = 'Wed, 13 Jan 2010 02:22:22 -0600', -> Xref = 'xyz.dyndns.org alt.coffee:280578', -> Content_Type = 'text/plain; charset=us-ascii', -> Lines = 4; What is it about "Lines" that breaks things? It's a reserved word: http://dev.mysql.com/doc/refman/5.1/...ved-words.html Ok... I didn't think I was COMPLETELY crazy. Here's the table I used probably two years ago that worked fine being populated with a bash/awk/sed script. Very strange that Lines worked then. |
#7
| |||
| |||
|
|
Steve Ackman: While we're at it, what's the best way to convert a Date like Wed, 13 Jan 2010 02:22:22 -0600 into standard MySQL format? The - not too friendly - thread that ends with this may help you further: http://forums.mysql.com/read.php?20,...968#msg-272968 |
![]() |
| Thread Tools | |
| Display Modes | |
| |