{"id":10050,"date":"2026-03-06T19:40:00","date_gmt":"2026-03-06T10:40:00","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=10050"},"modified":"2026-06-12T11:09:39","modified_gmt":"2026-06-12T02:09:39","slug":"short-url-%ec%a3%bc%ec%9d%98-%ec%82%ac%ed%95%ad","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=10050","title":{"rendered":"short URL \uc8fc\uc758 \uc0ac\ud56d"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">MSSQL \uc5d0\uc11c  \uceec\ub7fc\uc740 \ub300\uc18c \ubb38\uc790\ub97c \uad6c\ubd84\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\ud560\uc218 \uc788\uac8c \uc18d\uc131\uc744 \ucd94\uac00 \ud574\uc57c \ud55c\ub2e4.<br><br>SEFSFF \uc640  sefsff  \ub294 \uac19\uc740 \ud0a4\ub85c \uc778\uc2dd<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">Create<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:tsql decode:true \" >CREATE TABLE VTM_ShortUrl\n(\n\tshortUrl VARCHAR(20) COLLATE Latin1_General_CS_AS PRIMARY KEY,\n\tlongUrl VARCHAR(2000),\n\tcreateDate DATETIME DEFAULT GETDATE()\n)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PK \uc774\uba74 \ubcc0\uacbd\uc2dc  \ud0a4\uc18d\uc131\uc744 \uc0ad\uc81c\ud558\uace0 \ub2e4\uc2dc \uc124\uc815 \ud544\uc694<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:tsql decode:true \" >SQL\n-- 1. PK \uc0ad\uc81c (\uc81c\uc57d \uc870\uac74 \uc774\ub984\uc744 \ud655\uc778\ud574\uc11c \uc785\ub825\ud558\uc138\uc694)\nALTER TABLE ShortUrl DROP CONSTRAINT PK_ShortUrl;\n\n-- 2. \uceec\ub7fc \uc124\uc815 \ubcc0\uacbd (\ub300\uc18c\ubb38\uc790 \uad6c\ubd84 \uc124\uc815)\nALTER TABLE ShortUrl \nALTER COLUMN shortUrl VARCHAR(100) COLLATE Korean_100_CS_AS NOT NULL;\n\n-- 3. PK \uc7ac\uc124\uc815\nALTER TABLE ShortUrl ADD CONSTRAINT PK_ShortUrl PRIMARY KEY (shortUrl);<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Select<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:tsql decode:true \" >WHERE shortUrl COLLATE Latin1_General_CS_AS = @shortUrl<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\uc800\uc7a5\ud504\ub85c\uc2dc\uc800<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" >ALTER PROCEDURE [dbo].[usp_ShortUrl_Read]\n(\n\t@shortUrl varchar(100)\n)\nAS\nBEGIN\n\tSET NOCOUNT ON;\n\n\tSELECT longUrl\n\tFROM ShortUrl WITH (NOLOCK)\n\tWHERE shortUrl COLLATE Latin1_General_CS_AS = @shortUrl\n\nEND<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>MSSQL \uc5d0\uc11c \uceec\ub7fc\uc740 \ub300\uc18c \ubb38\uc790\ub97c \uad6c\ubd84\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\ud560\uc218 \uc788\uac8c \uc18d\uc131\uc744 \ucd94\uac00 \ud574\uc57c \ud55c\ub2e4. SEFSFF \uc640 sefsff \ub294 \uac19\uc740 \ud0a4\ub85c \uc778\uc2dd Create PK \uc774\uba74 <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=10050\" title=\"short URL \uc8fc\uc758 \uc0ac\ud56d\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-10050","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\/10050","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=10050"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10050\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}