简体   繁体   中英

SQL How to get max token of varbinary(max)?

I am just working with the HSQL database on jdbc:hsqldb:hsql://localhost/xdb . I started learning SQL today. Now I am trying to add a column to a table of books, giving the book covers. The problem: If I try with varbinary(max) I get the error:

unexpected token: MAX

If do the same with a fixed value like 1000 it works. But I don't know if that's the right value. So, how do I get the max variable?

According to this page, the maximum length for varbinary is 8000:

/-------------------------------------------------------------------------\
| Data Type | Description                                                 |
|-----------|-------------------------------------------------------------|
| varbinary | Maximum length of 8,000 bytes (Variable length binary data) |
\-----------|-------------------------------------------------------------/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM