Ian Lewis
Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development. About Me...
  • sqliteのデータの型 意味ねぇー

    INTEGERコラムに文字列データも入れられるし、とんでもないコラムの型でテーブル作れるし、型は結局何なんだ!

    sqlite> create table t1(i INTEGER);
    sqlite> insert into t1 (i) VALUES ('187482');
    sqlite> select * from t1;
    187482
    sqlite> insert into t1 (i) VALUES ('18748auhua:2');
    sqlite> select * from t1;
    187482
    18748auhua:2
    sqlite> create table t2(i IAN);
    sqlite> .schema t2
    CREATE TABLE t2(i IAN);
    sqlite>

    型を指定する意味ねぇー

    Send feedback このエントリーを含むはてなブックマーク はてなブックマーク - sqliteのデータの型 意味ねぇー