⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e250. creating a sqlserver table to store java types.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
This example creates a SQLServer table called sqlserver_all_table to store Java types. 
    try {
        Statement stmt = connection.createStatement();
    
        //     Column Name          SQLServer Type           Java Type
        String sql = "CREATE TABLE sqlserver_all_table("
            + "col_boolean          BIT, "                // boolean
            + "col_byte             TINYINT, "            // byte
            + "col_short            SMALLINT, "           // short
            + "col_int              INTEGER, "            // int
            + "col_float            REAL, "               // float
            + "col_double           DOUBLE PRECISION, "   // double
            + "col_bigdecimal       DECIMAL(13,0), "      // BigDecimal; can also be NUMERIC(p,s)
            + "col_string           VARCHAR(254), "       // String
            + "col_date             DATETIME, "           // Date
            + "col_time             DATETIME, "           // Time
            + "col_timestamp        TIMESTAMP, "          // Timestamp
            + "col_characterstream  TEXT, "               // CharacterStream or AsciiStream (< 2 GBytes)
            + "col_binarystream     IMAGE)";              // BinaryStream (< 2 GBytes)
    
        stmt.executeUpdate(sql);
    } catch (SQLException e) {
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -