On 11/21/05, <b class="gmail_sendername">Madison Kelly</b> <<a href="mailto:linux-5ZoueyuiTZhBDgjK7y7TUQ@public.gmane.org">linux-5ZoueyuiTZhBDgjK7y7TUQ@public.gmane.org</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;">
Hi all,<br><br> I am trying to get MySQL working on my backup program which, so far,<br>only runs on PostgreSQL. I suspect this will be fine because I just use<br>basic SQL calls (no stored procedures and such).<br><br>
My question is, my schema file I use to load the tables and data into<br>the database on pgSQL doesn't work on MySQL (surprise). Is there any<br>documentation on what is different between mysql and pgsql? I've been<br>
reading the MySQL docs (for v4.1) and I've learned how to create<br>databases and users and such but I can't find anything on what is and is<br>not valid. For example:<br><br>CREATE TABLE schedule (<br> sch_dom
text default
'*',<br> ...<br>);<br><br> works on pgsql but fails on mysql saying:<br><br>ERROR 1101 (42000) at line 67: BLOB/TEXT column 'sch_dom' can't have a<br>default value</blockquote><div><br>
Madison,<br>
<br>
I don't get that at all .. I get a happy little CREATE TABLE message, and displaying the table shows<br>
<br>
<span style="font-family: courier new,monospace;">nov22=# \d schedule</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Table "public.schedule"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Column | Type | Modifiers </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">---------+------+-------------</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> sch_dom | text | default '*'</span><br>
<br>
I'm using 7.3.4 -- for now.<br>
</div></div><br>
Alex<br>
<br>-- <br>----------<br>Linux, Firefox and GMail .. what a combination.