Hsqldb table encoding

前端 未结 3 652
清歌不尽
清歌不尽 2021-01-24 07:41

How do I set the character encoding for a specific table? E.g:

CREATE TABLE COMMENTS (
    ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1)          


        
3条回答
  •  渐次进展
    2021-01-24 08:21

    Are you sure that it's encoded as ASCII by default? My reading of it was that it's UTF-8 by default, though I'm open to correction here.

    If it's a TEXT table you'll can specify the encoding for the table

    SET TABLE mytable SOURCE "myfile;encoding=UTF-8"
    

提交回复
热议问题