반응형
- 암호화 복호화
select
decrypt(decode(sec_test::varchar(50), 'hex')::bytea, '0123456789', 'cast5'),
encode(encrypt((juno_test)::bytea, '0123456789'::bytea, 'cast5'), 'hex')
from test
- 필드 검색
SELECT pg_class.relname, pg_attribute.attname, pg_type.typname, pg_attribute.atttypmod-4
FROM pg_class, pg_attribute, pg_type
WHERE pg_attribute.attrelid = pg_class.oid
AND pg_attribute.atttypid = pg_type.oid
--AND pg_class.relname = '테이블명'
and pg_attribute.attname like '%secno%'
order by relname
반응형
'program' 카테고리의 다른 글
delphi + xml 만들기, 읽기 (0) | 2016.01.08 |
---|---|
Delphi에서 WebBrowser을 이용하여 popup이용 (0) | 2015.08.13 |
이미지 빠지지 않는 QuickReport 용 TQRImage 호환 (0) | 2015.06.18 |
pssql 일괄 업데이트 쿼리 예 (0) | 2014.12.26 |
Win7 32bit 4기가이상 램 패치 (0) | 2014.10.27 |