설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 94건, 최근 0 건
   

ip 저장 전용 컬럼 타입

글쓴이 : PostgresDBA 날짜 : 2013-06-24 (월) 15:37 조회 : 5088
설명이 필요 없습니다. 예제를 보시죠^^

scottdb=> create table t_ip(ip inet);
CREATE TABLE
scottdb=> insert into t_ip values('127.0.0.1');
INSERT 0 1
scottdb=> insert into t_ip values('10.10.10.80');
INSERT 0 1
scottdb=> select * from t_ip;
     ip
-------------
 127.0.0.1
 10.10.10.80
(2 rows)


scottdb=>


   

postgresdba.com