PostgreSQLのテーブルを作成するときに text型を選ぶと、サイズに関係なくテキストデータを保存することができる。
CREATE TABLE movie5 (movie_title varchar(64),
movie_id varchar(64),
movie_overview text,
movie_release_date varchar(64),
movie_runtime varchar(64),
movie_poster_path text
);insert into movie5 values (‘Ariel’, ‘2’, ‘Taisto Kasurinen is a Finnish coal miner whose father has just committed suicide and who is framed for a crime he did not commit. In jail, he starts to dream about leaving the country and starting a new life. He escapes from prison but things dont go as planned…’, ‘1988-10-21′, ’73’, ‘https://image.tmdb.org/t/p/w500/w0NzAc4Lv6euPtPAmsdEf0ZCF8C.jpg’);
これでインサート完了。
コメント