Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | 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[]';

link comment (0)
asked last year
mapplus
6
7 Answers
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.

link comment (1)
answered 11 months ago
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: