postgresql 에서 composite data type 을 리턴 받을 때, String으로 리턴이 되는데, 각 데이터 타입에 맞게 리턴 될 수는 없나요
조회수 982회
postgresql을 처음 사용해 봅니다.
composite dataType이란 것이 있길래 (String, String, integer) 형태의 필드를 만들어서
추가했습니다.
그리고 fetch해서 데이터를 불러왔는데(php)
array(2) {
[0]=> array(1) {
["info"]=> string(37) "(test2,테스트2,test2@test.com,100)" }
[1]=> array(1) {
["info"]=> string(37) "(test1,테스트1,test1@test.com,100)" } }
위의 처럼 리턴 됩니다.
각 데이터 타입에 맞게 리턴 되거나, composite member의 이름이 같이 출력되게 할 수는 없을까요.
댓글 입력