What is the SQL MODE in MYSQL (or any RDBMS)? -


what sql mode in mysql (or rdbms)? best option have sql mode , why?

if have layman explanation example great!

thank in advance ;-)

the sql mode affects how mysql behaves in situations. example, affects happens if try insert overlong content text type column. let's have column char(10) character set ascii not null, , try insert 'abcdef abcdef'. that's 13 characters, long. if current sql mode includes strict_trans_tables or strict_all_tables, mysql not insert value give error message. if neither of these on, mysql truncate string 10 characters, i.e. 'abcdef abc', , insert that.

there lots of other behaviours affected sql mode. example.

i use traditional, shorthand for, well, link given dcp tell you. basically, makes mysql less forgiving when send invalid input, find preferable because if send mysql that's not valid i'd rather know it, rather have mysql fudge , not tell me it's done so.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -