{"id":1097,"date":"2012-10-15T18:57:51","date_gmt":"2012-10-15T09:57:51","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=1097"},"modified":"2017-11-03T16:36:39","modified_gmt":"2017-11-03T07:36:39","slug":"ms-sql-create-table-%ea%b8%b0%eb%b3%b8","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=1097","title":{"rendered":"MS SQL Create Table  \uae30\ubcf8"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/auctionpro.co.kr\/wp-content\/uploads\/2012\/10\/Airport1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1099\" title=\"Airport\" src=\"https:\/\/auctionpro.co.kr\/wp-content\/uploads\/2012\/10\/Airport1.gif\" alt=\"\" width=\"584\" height=\"210\" srcset=\"https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2012\/10\/Airport1.gif 584w, https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2012\/10\/Airport1-300x107.gif 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<pre class=\"lang:mysql decode:true \" title=\"CREATE TABLE\" >\r\n\r\nCREATE TABLE COUNTRY \u2013\uad6d\uac00\r\n(\r\nCountry_Code char(2) NOT NULL , \u2013\uad6d\uac00\ucf54\ub4dc\r\nCountry_Name varchar(50) NOT NULL default \u201d \u2013\uad6d\uac00\uba85\r\n)\r\ngo\r\n\r\nALTER TABLE COUNTRY\r\nADD CONSTRAINT XPK_COUNTRY PRIMARY KEY CLUSTERED (Country_Code ASC)\r\ngo\r\n\r\nCREATE TABLE AIRPORT \u2013\uacf5\ud56d\r\n(\r\nidx int IDENTITY ( 1,1 ) , \u2013\uc77c\ub828\ubc88\ud638\r\nAirport_Code char(3) NOT NULL default \u201d, \u2013\uacf5\ud56d\ucf54\ub4dc\r\nCountry_Code char(2) NOT NULL default \u201d \u2014 \uad6d\uac00\ucf54\ub4dc\r\n)\r\ngo\r\n\r\nALTER TABLE AIRPORT \u2013\ud0a4 \uc124\uc815\r\nADD CONSTRAINT XPK_AIRPORT PRIMARY KEY CLUSTERED (idx ASC,Airport_Code ASC)\r\ngo\r\n\r\nALTER TABLE AIRPORT \u2013\uad00\uacc4\r\nADD CONSTRAINT R_01 FOREIGN KEY (Country_Code) REFERENCES COUNTRY(Country_Code)\r\nON DELETE CASCADE\u2013\ubd80\ubaa8 \uc0ad\uc81c\uc2dc \uc790\uc2dd\ud14c\uc774\ube14\ub3c4 \uc0ad\uc81c\r\nON UPDATE NO ACTION\r\ngo<\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>&nbsp; CREATE TABLE COUNTRY \u2013\uad6d\uac00 ( Country_Code char(2) NOT NULL , \u2013\uad6d\uac00\ucf54\ub4dc Country_Name varchar(50) NOT NULL default \u201d \u2013\uad6d\uac00\uba85 ) go ALTER TABLE COUNTRY ADD <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1097\" title=\"MS SQL Create Table  \uae30\ubcf8\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1097","post","type-post","status-publish","format-standard","hentry","category-mssql-server"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1097"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1097\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}