Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-03-2005, 12:40 PM   #1 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 746
DJMaze is on a distinguished road
MySQL 4.1/5.0

As we all know MySQL AB has released 5.0 of it's SQL server.
If you are comming from 4.0 then you would probably have to enhance your coding skills due to more strict rules to be ISO compliant.

NULL, NOT NULL and DEFAULT are much stricter so that a column/field must be identified as so in a INSERT statement. (Read the documents regarding data types and such if you don't understand)

Something else in 5.0.12 and up is the parse error regarding
Code:
SELECT * FROM table1 t1, table2 t2 LEFT JOIN table3 t3 ON (t3.field = t1.field)
Because t1.field is NOT accessible since the query is handled as being
Code:
SELECT * FROM table1 t1, ( table2 t2 LEFT JOIN table3 t3 ON (t3.field = t1.field) )
Instead your code should be like
Code:
SELECT * FROM (table1 t1, table2 t2) LEFT JOIN table3 t3 ON (t3.field = t1.field)
Another issue (which already exists for ages even in 4.0) is the transfer of data in different character sets.
Be shure to use the correct SET NAMES and SET DEFAULT CHARACTER SET especialy now with the utf8/unicode support
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Replication / Failover idx Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 2 02-23-2005 08:22 PM
and on to mysql .. sde Linux / BSD / OS X 2 01-18-2003 08:39 PM


All times are GMT -8. The time now is 12:57 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting