SQL Syntax |
Zhen Zhang |
2006-11-14 01:46:32 |
���������,
����������Intergraph Deutschland GmbH���������������������������������HXTT Access v2.0������������������������������������������������������������MS Access������������������������JDBC Driver��������������������������������MS Access��������������JET engine������Access����������������������SQL Syntax���������������������������������������������������������������������Data Type��������������������������������IMAGE in Access vs OTHER(OLE)������Data Type����������������������������������������������������������������SQL Syntax��������
Gruss Zhen
|
Re:SQL Syntax |
HXTT Support |
2006-11-14 02:12:19 |
|
������������SQL Syntax����������������������HXTT Access����������������Java������������������MS Access���������������������������������������������������������������������������������������SQL Data Types for Create Table�������������������������������������������������������������������������������������������������������������������������������������x���������������������������������HXTT Access��������������JDBC������SQL����������������������������������������������������������������������
|
Re:Re:SQL Syntax |
Zhen Zhang |
2006-11-14 02:36:34 |
Could you show the mapping from jdbc type to database native type of your driver, for example ARRAY is mapped to which database native type?
Gruss Zhen
|
Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-14 02:42:43 |
������SQL Data Types for Create Table������SQL Type��������������������������������������4������java.sql.Types������ARRAY�����������������������������������������������MS Access�����������������������������������������������
|
Re:Re:Re:Re:SQL Syntax |
Zhen Zhang |
2006-11-14 03:24:10 |
|
���������������������BLOB������MS Access������������������������������������������SQL Query��������������������BLOB������������������OTHER(OLE)���������������������������������Apache DdlUtils that you can access under http://db.apache.org/ddlutils/������
|
Re:Re:Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-14 03:43:07 |
>BLOB������MS Access������������������������������������������SQL Query��������������������BLOB������������������OTHER(OLE)��������
������������BLOB����������������������OLE��������������������������
>��SQL Query��������������������BLOB������������������OTHER(OLE)������
���<���������������������������������������������create table������������������������������������������������������BLOB��������������������������������}����������������������OLE��������������������
��������������4������������������������������ARRAY�����������������������MS Access��������������������������������������������������������JAVA_OBJECT������������4����������������������������������������������������OLE��������������������������������������������������������������������������serialize��������Array��������������������������Array��������������������������?����������������������������������������������������������������������������������������������������
|
Re:Re:Re:Re:Re:Re:SQL Syntax |
Zhen Zhang |
2006-11-14 03:51:59 |
������������������������SQL Syntax����������������������������������������������������������������������������������������������������mapping BLOB to OLE��������������������������������������������
Gruss Zhen
|
Re:Re:Re:Re:Re:Re:Re:SQL Syntax |
Zhen Zhang |
2006-11-14 03:54:14 |
|
��������������������create table, alter table and so on��������ddl������
|
Test Case |
Zhen Zhang |
2006-11-14 04:31:04 |
/**
* Tests the column types.
*/
public void testColumnTypes() throws Exception
{
assertEqualsIgnoringWhitespaces(
"DROP TABLE \"coltype\";\n"+
"CREATE TABLE \"coltype\"\n"+
"(\n"+
" \"COL_ARRAY\" JAVA_OBJECT,\n"+
" \"COL_BIGINT\" BIGINT,\n"+
" \"COL_BINARY\" BINARY(254),\n"+
" \"COL_BIT\" BIT,\n"+
" \"COL_BLOB\" BLOB,\n"+
" \"COL_BOOLEAN\" BOOLEAN,\n"+
" \"COL_CHAR\" CHAR(15),\n"+
" \"COL_CLOB\" CLOB,\n"+
" \"COL_DATALINK\" JAVA_OBJECT,\n"+
" \"COL_DATE\" DATE,\n"+
" \"COL_DECIMAL\" DECIMAL(15,3),\n"+
" \"COL_DECIMAL_NOSCALE\" DECIMAL(15,0),\n"+
" \"COL_DISTINCT\" JAVA_OBJECT,\n"+
" \"COL_DOUBLE\" DOUBLE,\n"+
" \"COL_FLOAT\" FLOAT,\n"+
" \"COL_INTEGER\" INT,\n"+
" \"COL_JAVA_OBJECT\" JAVA_OBJECT,\n"+
" \"COL_LONGVARBINARY\" LONGVARBINARY,\n"+
" \"COL_LONGVARCHAR\" LONGVARCHAR,\n"+
" \"COL_NULL\" JAVA_OBJECT,\n"+
" \"COL_NUMERIC\" NUMERIC(15,0),\n"+
" \"COL_OTHER\" OTHER(OLE),\n"+
" \"COL_REAL\" REAL,\n"+
" \"COL_REF\" JAVA_OBJECT,\n"+
" \"COL_SMALLINT\" SMALLINT,\n"+
" \"COL_STRUCT\" JAVA_OBJECT,\n"+
" \"COL_TIME\" TIME,\n"+
" \"COL_TIMESTAMP\" TIMESTAMP,\n"+
" \"COL_TINYINT\" TINYINT,\n"+
" \"COL_VARBINARY\" VARBINARY(15),\n"+
" \"COL_VARCHAR\" VARCHAR(15)\n"+
");\n",
createTestDatabase(COLUMN_TEST_SCHEMA));
}
|
Re:Re:Re:Re:Re:Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-14 17:30:38 |
>������������������������������mapping BLOB to OLE��������������������������������������������
������
>create table, alter table and so on��������ddl
alter table�����������������������������������������������������������
>"DROP TABLE \"coltype\";\n"+
�����������������"DROP TABLE if exists \"coltype\";\n"+ ���������������������������������������������
>" \"COL_TINYINT\" TINYINT,\n"+
�����������������������������������������������MS Access��������������TINYINT(-127~128)��������������MS Access������������byte��������������0~255)����������������������������TINYINT��������������������������������������������������������������������������Unavailing, map TINYINT into SMALLINT��������������short������������������������������������������������HXTT Access��������������
|
DDL |
Zhen Zhang |
2006-11-15 02:28:11 |
������������������alter table�������������������������������������������������������������������������������DEFAULT������auto increment, foreign key, identity of the last inserted row and so on��������������������������������
����������������������������������DDL������DML��������������������������������������������������������������������������������
DdlUtils������������������������������http://db.apache.org/ddlutils/database-support.html����������������������������������������������
����������
|
Re:Re:Re:Re:Re:Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-15 03:05:21 |
>������������������alter table���������������������������������������������
�������������������������Bulk Insert���������������������������?������������������?���������������������������?��������
>����������������������������������DEFAULT������
�������������������
>auto increment, foreign key,
��������������������sql�����������������������������������������������������������������MS Access������������������������������������������������������������insert/update/delete������������������������������������(cascading updates and cascading deletes������������������������
>identity of the last inserted row and so on��������������������������������
�����������������������������������JDBC��������������Statement.executeUpdate(String sql, int autoGeneratedKeys)������Statement.getGeneratedKeys()��������������
>DdlUtils������������������������������http://db.apache.org/ddlutils/database-support.html������
>����������������������������������������
��������������������������������������MS Access���������������������������������������������������alter table������������������������������������������������������������������������������������������������DdlUtils������������������������������������������������������������������������������������������alter table��������������������������������������������������������������������������������������������
|
Re:Re:Re:Re:Re:Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-15 03:18:38 |
|
��������������DdlUtils�������������������������l���������������������������������������������������������������svn��������������
|
DdlUtils |
Zhen Zhang |
2006-11-15 03:59:57 |
> ������������������������������������������������
Metadata Database is a key part of our webmap application that is developed now. Meanwhile the stable release has been delivered to our clients. But the ongoing development makes database schema change very often, for example a new column of one table has been added. The old database schema muss be upgrade to obtain the same state as the new one, so clients can use add-on features of the new version.
The idea from DdlUtils indicates that metadata that are extract from a live database are used to feed the database domain model, then we can utilize the domain model to achieve our goals.
|
Re:Re:Re:Re:Re:Re:Re:Re:SQL Syntax |
HXTT Support |
2006-11-22 08:00:30 |
v2.0.041 supports fully ALTER TABLE sql.
v2.0.041 supports DROP INDEX sql.
You can download it after about 2 hours.
|