On 11/5/06, <b class="gmail_sendername">Cameron Simpson</b> <<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 05Nov2006 09:26, Dylan Semler <<a href="mailto:dylan.semler@gmail.com">dylan.semler@gmail.com</a>> wrote:<br>| > |  insert into objects (object, ID, `Spec.`) VALUES ('[mag]', '[mag]', '<br>| > | with backslashes and backticks around the brackets.  Usually mysql juts
<br>| > | updates the table with a [, rather than [mag].  Anyone know how this<br>| should | > | be done?<br>| ><br>| > Please show us "describe objects". Maybe your column types are<br>| > restrictive?
<br>|<br>| mysql> describe objects;<br>| +---------------+---------+------+-----+---------+-------+<br>| | Field         | Type    | Null | Key | Default | Extra |<br>| +---------------+---------+------+-----+---------+-------+
<br>| | object        | char(1) | YES  |     | NULL    |       |<br>| | ID            | char(1) | YES  |     | NULL    |       |<br>[...]<br><br>You can't fit a 5 character string into a 1 character column!</blockquote><div>
<br>Ah, I suppose I should have caught that.  It may be obvious that I'm new to mysql.  I created the columns with simply CHAR and didn't specify a character length, hoping it would allow unlimited number of characters.  I see now that it did the opposite.  Thanks for the help.
<br></div><br></div>-- <br>Dylan <br><br>Type faster.  Use Dvorak:<br><a href="http://dvzine.org">http://dvzine.org</a>