提交 36f23b16 authored 作者: Thomas Mueller's avatar Thomas Mueller

moved mysql docs

上级 06c77f7b
......@@ -15,14 +15,6 @@ db6 = Derby, org.apache.derby.jdbc.ClientDriver, jdbc:derby://localhost/data/der
db7 = PostgreSQL, org.postgresql.Driver, jdbc:postgresql:test, sa, sa
db8 = MySQL, com.mysql.jdbc.Driver, jdbc:mysql://localhost/test?jdbcCompliantTruncation=false, sa, sa
# MySQL configuration:
# create database test;
# create user 'sa'@'localhost' identified by 'sa';
# use test;
# grant all on * to 'sa'@'localhost' with grant option;
# sudo mysqld_safe
# sudo mysqladmin shutdown
#db2 = MSSQLServer, com.microsoft.jdbc.sqlserver.SQLServerDriver, jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=test, test, test
#db2 = Oracle, oracle.jdbc.driver.OracleDriver, jdbc:oracle:thin:@localhost:1521:XE, client, client
#db2 = Firebird, org.firebirdsql.jdbc.FBDriver, jdbc:firebirdsql:localhost:c:/temp/firebird/test, sysdba, masterkey
......
MySQL
--------------------------------------------------------------------------------------------------------
ANSI mode can be set using SET GLOBAL sql_mode='ANSI'; 'TRADITIONAL' is default
'TRADITIONAL' is default; ANSI mode can be set using:
SET GLOBAL sql_mode='ANSI';
SELECT @@global.sql_mode
Compare with NULL problem
Compare with NULL problem:
drop table test;
create table test(id int);
insert into test values(1);
......@@ -12,12 +12,24 @@ insert into test values(null);
-- 2 rows even in ANSI mode (correct is 1 row):
select * from test where id=id and 1=1;
Configuration:
create database test;
create user 'sa'@'localhost' identified by 'sa';
use test;
grant all on * to 'sa'@'localhost' with grant option;
Start and Stop:
sudo mysqld_safe
sudo mysqladmin shutdown
MS SQL Server 2005
--------------------------------------------------------------------------------------------------------
Problems when trying to select large objects (even if ResultSet.getBinaryStream is used).
The workaround responseBuffering=adaptive doesn't always seem to work
(jdbc:sqlserver://localhost:4220;DatabaseName=test;responseBuffering=adaptive)
PostgreSQL
--------------------------------------------------------------------------------------------------------
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论