Open Source RDBMS - Seamless, Scalable, Stable and Free

English | Login |Register


1
(click on this box to dismiss)

What is the SQL data type for this java stored procedure/function?

What is the SQL data type for this java stored procedure/function?


public class MyCubrid {
    public static byte[] ToByteArray(String code, double ratio) {
        byte[] buf = new byte[8];
       
        // do something....
       
        return buf;
    }
}

CREATE FUNCTION ToByteArray(code varchar, ratio double) RETURN ???
AS LANGUAGE JAVA
NAME 'MyCubrid.ToByteArray(java.lang.String, double) return byte[]';

링크 댓글 쓰기 (0)
질문시간 8달 전
mapplus
6
7 답변들
0

In the above example you can use BIT VARYING or BIT data types which allow you to store binary data either in binary or hexadecimal formats. Refer to Bit Strings manual page.

링크 댓글 쓰기 (1)
답변시간 7달 전
admin
86




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: