Created
October 23, 2013 04:52
-
-
Save ppillip/7112782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 지역별단위난방부하코드 */ | |
// type A | |
db.commonCode.save( | |
{ | |
_id : "billTypeCode" | |
,codes:[ | |
,{name:"주택용" , code:"house"} | |
,{name:"업무용" , code:"business"} | |
,{name:"공공용" , code:"public"} | |
] | |
} | |
); | |
// type B | |
db.commonCode.save( | |
{ | |
_id : "billTypeCode" | |
,data: { | |
"house" : "주택용" | |
,"business" : "업무용" | |
,"public" : "공공용" | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment