将SQL Server DB迁移到HSQLDB替代varchar(max)

时间:2020-12-15 10:37:11

I am working on requirement to migrate Microsoft SQL Server to HSQL Database.

我正在努力将Microsoft SQL Server迁移到HSQL数据库。

What will be the alternative for varchar(max) from SQL Server to other data type in HSQL Database?

从SQL Server到HSQL数据库中的其他数据类型的varchar(max)替代方案是什么?

1 个解决方案

#1


0  

You can use VARCHAR with a large maximum size, for example VARCHAR(1000000). Check the maximum size of the strings in that column in the SQLServre database and use a larger value. If the strings are typically longer than 32000 characters, you can consider using CLOB instead.

您可以使用具有较大最大大小的VARCHAR,例如VARCHAR(1000000)。检查SQLServre数据库中该列中字符串的最大大小,并使用更大的值。如果字符串通常长于32000个字符,则可以考虑使用CLOB。

#1


0  

You can use VARCHAR with a large maximum size, for example VARCHAR(1000000). Check the maximum size of the strings in that column in the SQLServre database and use a larger value. If the strings are typically longer than 32000 characters, you can consider using CLOB instead.

您可以使用具有较大最大大小的VARCHAR,例如VARCHAR(1000000)。检查SQLServre数据库中该列中字符串的最大大小,并使用更大的值。如果字符串通常长于32000个字符,则可以考虑使用CLOB。