{"id":41807,"date":"2020-03-23T00:55:00","date_gmt":"2020-03-22T20:25:00","guid":{"rendered":"https:\/\/ostovaee.ir\/fa\/?p=41807"},"modified":"2020-05-11T13:45:06","modified_gmt":"2020-05-11T09:15:06","slug":"different-types-sql-keys","status":"publish","type":"post","link":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/","title":{"rendered":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL"},"content":{"rendered":"\n<p>\u062f\u0631 \u0622\u0645\u0648\u0632\u0634 <a href=\"https:\/\/ostovaee.ir\/fa\/%d8%b3%d8%a7%d8%ae%d8%aa%d9%86-%d8%ac%d8%af%d9%88%d9%84-%d8%af%d8%b1-sql-server\/\">\u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644<\/a> \u0628\u0627 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0648 \u062f\u0633\u062a\u0648\u0631 \u0627\u06cc\u062c\u0627\u062f \u062c\u062f\u0648\u0644 \u062f\u0631 sql \u0622\u0634\u0646\u0627 \u0634\u062f\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u0627 \u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql \u0622\u0634\u0646\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u0634\u062f \u0648 \u06cc\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06af\u0631\u0641\u062a \u06a9\u0647 \u062f\u0631 sql \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 (Constraint) \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0627\u06af\u0631 \u0628\u06cc\u0646 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627\u06cc \u062a\u0639\u06cc\u06cc\u0646 \u0634\u062f\u0647 \u0648 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0645\u063a\u0627\u06cc\u0631\u062a \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0627\u06cc\u0646 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0627\u062c\u0627\u0632\u0647 \u0648\u0631\u0648\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u063a\u06cc\u0631 \u0645\u062c\u0627\u0632 \u0631\u0627 \u0646\u062f\u0647\u062f.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ostovaee.ir\/fa\/product\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%b1%d8%a7%db%8c%da%af%d8%a7%d9%86-sql-server\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" loading=\"lazy\" width=\"953\" height=\"278\" src=\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-FreeStart.jpg\" alt=\"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u06cc\u06af\u0627\u0646 Sql Server | \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\" class=\"wp-image-1375\" srcset=\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-FreeStart.jpg 953w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-FreeStart-300x88.jpg 300w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-FreeStart-768x224.jpg 768w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-FreeStart-500x146.jpg 500w\" sizes=\"(max-width: 953px) 100vw, 953px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/h2>\n\n\n\n<p>\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 \u0634\u0634 \u0642\u06cc\u062f \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Not Null \u062f\u0631 sql<\/h3>\n\n\n\n<p> \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0647\u0631 \u0641\u06cc\u0644\u062f \u0627\u0645\u06a9\u0627\u0646 \u067e\u0630\u06cc\u0631\u0634 \u0645\u0642\u062f\u0627\u0631 Null \u0631\u0627 \u062f\u0627\u0631\u062f \u062f\u0631 \u0648\u0627\u0642\u0639 Allow Null \u06cc\u0627 Nullable \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u067e\u0630\u06cc\u0631\u0634 \u0645\u0642\u062f\u0627\u0631 Null \u0628\u0627\u06cc\u062f \u0645\u0642\u0627\u0628\u0644 \u0641\u06cc\u0644\u062f \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u0639\u0628\u0627\u0631\u062a &#8220;Not Null&#8221; \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\nCode int identity,\nFirstName nvarchar(30),\nLastName nvarchar(50) not null\n)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u062f\u0633\u062a\u0648\u0631 default \u062f\u0631 sql<\/h3>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0647\u0631 \u0641\u06cc\u0644\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u06cc\u062f (Constraint) \u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a \u06a9\u0647 \u062f\u0631\u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0646\u0648\u06cc\u0633 \u0628\u0647 \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f \u0645\u0642\u062f\u0627\u0631 \u0646\u062f\u0647\u062f \u0645\u0642\u062f\u0627\u0631 \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 (default) \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n\n\n\n<p>\u0627\u06af\u0631 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u062f\u0627\u0631\u0627\u06cc \u0645\u0642\u062f\u0627\u0631 default \u0628\u0627\u0634\u062f \u0648 \u0627\u0632 \u0637\u0631\u0641\u06cc \u0627\u0645\u06a9\u0627\u0646 \u067e\u0630\u06cc\u0631\u0634 Null \u0647\u0645 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0627\u06af\u0631 \u0647\u06cc\u0686 \u0645\u0642\u062f\u0627\u0631\u06cc \u0628\u0647 \u0622\u0646 \u0641\u06cc\u0644\u062f \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0646\u0634\u0648\u062f \u0645\u0642\u062f\u0627\u0631 default \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0627\u0645\u0627 \u0627\u06af\u0631 \u0645\u0642\u062f\u0627\u0631 Null \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f \u0627\u06cc\u0646\u0628\u0627\u0631 \u0645\u0642\u062f\u0627\u0631 defualt \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0646\u062e\u0648\u0627\u0647\u062f \u0634\u062f \u0648 \u0645\u0642\u062f\u0627\u0631 \u0641\u06cc\u0644\u062f Null \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. <\/p>\n\n\n\n<p>\u062f\u0631\u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u062f\u0627\u0631\u0627\u06cc \u0645\u0642\u062f\u0627\u0631 Default \u0628\u0627\u0634\u062f \u0648 \u0627\u0632 \u0637\u0631\u0641\u06cc \u0627\u0645\u06a9\u0627\u0646 \u067e\u0630\u06cc\u0631\u0634 Null \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u062f\u0631 \u0627\u06cc\u0646\u0635\u0648\u0631\u062a \u0627\u06af\u0631 \u0645\u0642\u062f\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0646\u0634\u0648\u062f \u0645\u0642\u062f\u0627\u0631 default \u0628\u0647 \u0622\u0646 \u0641\u06cc\u0644\u062f \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0627\u06af\u0631 \u0628\u0647 \u0641\u06cc\u0644\u062f \u0645\u0642\u062f\u0627\u0631 Null \u062f\u0627\u062f\u0647 \u0634\u0648\u062f \u062e\u0637\u0627\u06cc &#8220;column does not allow nulls&#8221; \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n\n\n\n<p>\u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 Insert \u0628\u062c\u0627\u06cc \u0645\u0642\u062f\u0627\u0631 \u0641\u06cc\u0644\u062f \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u0627\u0632 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc default \u0628\u0631\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635 \u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f \u0627\u0644\u0628\u062a\u0647 \u0646\u0648\u0634\u062a\u0646 \u0627\u06cc\u0646 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc \u0627\u0644\u0632\u0627\u0645\u06cc \u0646\u06cc\u0633\u062a \u0648 \u062a\u0641\u0627\u0648\u062a\u06cc \u0628\u06cc\u0646 \u062f\u0648 \u062f\u0633\u062a\u0648\u0631 Insert \u0632\u06cc\u0631 \u0646\u06cc\u0633\u062a. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0646\u0648\u0634\u062a\u0646 default \u0628\u0647 \u062a\u0646\u0647\u0627\u06cc\u06cc \u0645\u0644\u0627\u06a9 \u0628\u06cc\u200c\u0645\u0642\u062f\u0627\u0631 \u0645\u0627\u0646\u062f\u0646 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0646\u06cc\u0633\u062a \u0628\u0644\u06a9\u0647 \u0628\u0627\u06cc\u062f \u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0631\u0627 \u0628\u0639\u062f \u0627\u0632 \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc  default \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table users\n(\nguid uniqueidentifier default newId() not null,\nbegindate datetime default getdate(),\nuserid int \n)\n\ninsert users\nvalues (default,null,1)\n\ninsert users(begindate,userid)\nvalues (null,1)<\/pre>\n\n\n\n<p>\u062f\u0631 \u0645\u062b\u0627\u0644 \u0641\u0648\u0642 \u0641\u06cc\u0644\u062f guid \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 \u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636\u060c \u0641\u06cc\u0644\u062f begindate \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 Null \u0648 \u0641\u06cc\u0644\u062f userid \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 \u0645\u0642\u062f\u0627\u0631 1 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0627\u06cc\u0646 \u0631\u06a9\u0648\u0631\u062f \u062f\u0631 \u062c\u062f\u0648\u0644 \u0628\u062f\u06cc\u0646 \u0635\u0648\u0631\u062a \u0630\u062e\u06cc\u0631\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f. \u062f\u0642\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0639\u062f \u0627\u0632 \u0642\u06cc\u062f default \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0627\u0632 \u0633\u0627\u06cc\u0631 \u0641\u06cc\u0644\u062f\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0634\u062a\u0628\u0627\u0647 \u0627\u0633\u062a \u0648 \u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627 \u0634\u062f\u0646 \u062f\u0631 sql \u062e\u0637\u0627 \u0631\u062e \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Users\n(\nguid uniqueidentifier default newId() not null,\nbegindate datetime default getdate(),\nuserid int,\nUserName nvarchar(30),\nFullName nvarchar(max) default UserName\n)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u062f\u0633\u062a\u0648\u0631 check \u062f\u0631 sql<\/h3>\n\n\n\n<p>\u0642\u06cc\u062f Check \u0627\u0639\u0645\u0627\u0644 \u0634\u0631\u0627\u06cc\u0637 \u0628\u0631\u0627\u06cc \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0645\u0642\u0627\u062f\u06cc\u0631 \u0648\u0631\u0648\u062f\u06cc \u0645\u06cc\u200c\u0628\u0627\u0634\u062f \u0628\u0637\u0648\u0631 \u0645\u062b\u0627\u0644 \u0637\u0648\u0644 \u0631\u0645\u0632 \u06a9\u0627\u0631\u0628\u0631 \u062d\u062f\u0627\u0642\u0644 6 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0628\u0627\u0634\u062f. \u0627\u06cc\u0646 \u0642\u06cc\u062f \u0645\u062d\u062f\u0648\u062f \u0628\u0647 \u0641\u06cc\u0644\u062f \u062e\u0627\u0635\u06cc \u0646\u0645\u06cc\u200c\u0628\u0627\u0634\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u062f\u0631 \u0634\u0631\u0627\u06cc\u0637 \u0642\u06cc\u062f Check \u0686\u0646\u062f\u06cc\u0646 \u0634\u0631\u0637 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0631 \u0631\u0648\u06cc \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0647\u0645 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0686\u0646\u062f\u06cc\u0646 \u0634\u0631\u0637 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">constraint \u0646\u0627\u0645 \u0642\u06cc\u062f\ncheck (\u0634\u0631\u0627\u06cc\u0637)<\/pre>\n\n\n\n<p> \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u06a9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631\u060c \u0634\u0631\u0637 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631 \u0628\u0627\u06cc\u062f \u0628\u0632\u0631\u06af\u062a\u0631 \u0627\u0632 6 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0628\u0627\u0634\u062f \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 insert \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u062e\u0637\u0627 \u0631\u062e \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a \u062f\u0631\u062c \u062f\u0631 \u062c\u062f\u0648\u0644 \u0627\u0646\u062c\u0627\u0645 \u0646\u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Users\n(\nguid uniqueidentifier default newId() not null,\nuserid int,\nUserName nvarchar(30),\n[Password] varchar(50) not null,\nconstraint chk_Password\ncheck(len([Password])>6)\n)\n\ninsert users\nvalues (default,1,'s.mohamadi','123456')<\/pre>\n\n\n\n<p>\u062f\u0631 \u0642\u06cc\u062f Check \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u0627\u06cc\u0631 \u0641\u06cc\u0644\u062f\u0647\u0627 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0628\u0637\u0648\u0631 \u0645\u062b\u0627\u0644 \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u062a\u0627\u0631\u06cc\u062e \u0634\u0631\u0648\u0639 \u0648 \u067e\u0627\u06cc\u0627\u0646 \u0627\u0633\u062a \u0648 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0686\u06a9 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062a\u0627\u0631\u06cc\u062e \u067e\u0627\u06cc\u0627\u0646 \u0627\u0632 \u062a\u0627\u0631\u06cc\u062e \u0634\u0631\u0648\u0639 \u0628\u0632\u0631\u06af\u062a\u0631 \u0628\u0627\u0634\u062f \u062f\u0631 \u063a\u06cc\u0631\u0627\u06cc\u0646\u0635\u0648\u0631\u062a \u0627\u062c\u0627\u0632\u0647 \u062f\u0631\u062c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0627\u062f\u0647 \u0646\u0634\u0648\u062f \u0648 \u062e\u0637\u0627 \u0631\u062e \u062f\u0647\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table product\n(\nId int identity,\nProductName varchar(max),\nBeginDate datetime default getdate() not null,\nEndDate datetime,\nconstraint chk_product\ncheck(EndDate>BeginDate)\n)<\/pre>\n\n\n\n<h2 class=\"d-none wp-block-heading\">\u0628\u0631\u0631\u0633\u06cc \u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u062f\u0633\u062a\u0648\u0631 unique \u062f\u0631 sql<\/h3>\n\n\n\n<p>\u0642\u06cc\u062f Unique \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0645\u0642\u0627\u062f\u06cc\u0631 \u062a\u06a9\u0631\u0627\u0631\u06cc \u0646\u067e\u0630\u06cc\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u062f\u0631 \u0648\u0627\u0642\u0639 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0641\u06cc\u0644\u062f \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0648 \u06cc\u06a9\u062a\u0627 \u0627\u0633\u062a.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) unique not null\n)<\/pre>\n\n\n\n<p>\u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0642\u06cc\u062f Unique \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0628\u06cc\u0634 \u0627\u0632 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0646\u06cc\u0632 \u0627\u0639\u0645\u0627\u0644 \u06a9\u0631\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) unique not null,\nEmail varchar(100) unique\n)<\/pre>\n\n\n\n<p>\u062f\u0631 \u0645\u062b\u0627\u0644 \u0628\u0627\u0644\u0627 \u06a9\u0627\u0631\u0628\u0631 \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0627\u06cc\u0645\u06cc\u0644 \u062a\u06a9\u0631\u0627\u0631\u06cc \u06cc\u0627 \u06a9\u062f \u0645\u0644\u06cc \u062a\u06a9\u0631\u0627\u0631\u06cc \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0648\u0627\u0631\u062f \u06a9\u0646\u062f \u0648 \u0627\u06af\u0631 \u06cc\u06a9\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0646\u06cc\u0632 \u062a\u06a9\u0631\u0627\u0631\u06cc \u0628\u0627\u0634\u062f \u062e\u0637\u0627 \u0631\u062e \u0645\u06cc\u200c\u062f\u0647\u062f \u0648 \u0627\u062c\u0627\u0632\u0647 \u062f\u0631\u062c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0627\u062f\u0647 \u0646\u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u06cc\u0646 \u06cc\u06a9\u062a\u0627 \u0628\u0648\u062f\u0646 \u062f\u0631 \u062e\u0635\u0648\u0635 \u0645\u0642\u062f\u0627\u0631 Null \u0646\u06cc\u0632 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06cc\u0639\u0646\u06cc \u062a\u0646\u0647\u0627 \u06cc\u06a9 \u0631\u06a9\u0648\u0631\u062f \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0641\u06cc\u0644\u062f email \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 Null \u0628\u0627\u0634\u062f.<\/p>\n\n\n\n<p>\u062f\u0631\u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0642\u06cc\u062f unique \u0628\u0631 \u0631\u0648\u06cc \u0628\u06cc\u0634 \u0627\u0632 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0646\u0648\u0634\u062a\u0647 \u0634\u0648\u062f \u06cc\u0639\u0646\u06cc \u062a\u0631\u06a9\u06cc\u0628 \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f\u0647\u0627 \u0646\u0628\u0627\u06cc\u062f \u062a\u06a9\u0631\u0627\u0631\u06cc \u0628\u0627\u0634\u062f \u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0646\u0628\u0627\u06cc\u062f \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0631\u0627\u06cc \u06a9\u062f \u0645\u0644\u06cc \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u062f\u0642\u06cc\u0642\u0627\u064b \u0647\u0645\u0627\u0646 \u0627\u06cc\u0645\u06cc\u0644 \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u06cc\u0639\u0646\u06cc \u0627\u06af\u0631 \u06a9\u062f \u0645\u0644\u06cc  &#8220;1111111111&#8221; \u0628\u0627 \u0627\u06cc\u0645\u06cc\u0644 &#8220;a.a@yahoo.com&#8221; \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u062b\u0628\u062a \u0634\u062f\u0647 \u0627\u0645\u06a9\u0627\u0646 \u062f\u0631\u062c \u0645\u062c\u062f\u062f \u0622\u0646\u0647\u0627 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u0627\u0645\u0627 \u06a9\u0627\u0631\u0628\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0647\u0645\u0627\u0646 \u06a9\u062f \u0645\u0644\u06cc &#8220;1111111111&#8221; \u0631\u0627 \u0628\u0627 \u0627\u06cc\u0645\u06cc\u0644 &#8220;b.b@yahoo.com&#8221; \u062f\u0631\u062c \u06a9\u0646\u062f \u0648 \u062e\u0637\u0627\u06cc\u06cc \u0631\u062e \u0646\u0645\u06cc\u200c\u062f\u0647\u062f \u0627\u0645\u0627 \u062f\u0631 \u062d\u0627\u0644\u062a \u0628\u0627\u0644\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0631\u062f\u06cc\u062f \u06a9\u0647 \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0641\u06cc\u0644\u062f\u0647\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u062a\u0646\u0647\u0627\u06cc\u06cc \u0628\u0627\u06cc\u062f \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0628\u0627\u0634\u0646\u062f \u0648 \u062d\u0627\u0644\u062a \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0646\u062f\u0627\u0631\u0646\u062f. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) not null,\nEmail varchar(100)\nconstraint uq_product \nunique (CodeMelli,Email)\n)<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ostovaee.ir\/fa\/product\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%da%a9%d8%a7%d9%85%d9%84-sql-server\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" loading=\"lazy\" width=\"953\" height=\"358\" src=\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-Magic-Feature.jpg\" alt=\"\u062c\u0627\u062f\u0648\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc Sql Server |\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\" class=\"wp-image-1378\" srcset=\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-Magic-Feature.jpg 953w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-Magic-Feature-300x113.jpg 300w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-Magic-Feature-768x289.jpg 768w, https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/04\/SQL-Adver-Magic-Feature-500x188.jpg 500w\" sizes=\"(max-width: 953px) 100vw, 953px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u062f\u0631 sql<\/h3>\n\n\n\n<p>\u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql \u0645\u06cc\u200c\u0628\u0627\u0634\u062f \u06a9\u0647 \u06cc\u06a9 \u0631\u0648\u0634 \u0627\u06cc\u062c\u0627\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0628\u0647 \u0647\u0631 \u0631\u06a9\u0648\u0631\u062f \u0627\u0633\u062a. \u062f\u0631 \u062a\u0639\u0627\u0631\u06cc\u0641 \u0633\u0646\u062a\u06cc \u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u0641\u06cc\u0644\u062f \u06cc\u0627 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u0641\u06cc\u0644\u062f\u0647\u0627\u0633\u062a \u06a9\u0647 \u062d\u062a\u0645\u0627\u064b \u0645\u0642\u062f\u0627\u0631 \u062f\u0627\u0631\u0646\u062f \u0648 \u062f\u0631 \u0631\u06a9\u0648\u0631\u062f\u0647\u0627 \u0645\u0642\u062f\u0627\u0631 \u062a\u06a9\u0631\u0627\u0631\u06cc \u0646\u062f\u0627\u0631\u0646\u062f.<br>\u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u0628\u0647 \u0647\u06cc\u0686 \u0639\u0646\u0648\u0627\u0646 \u0646\u0628\u0627\u06cc\u062f \u0627\u0632 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627\u0634\u062f \u0648 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631 int \u0628\u0635\u0648\u0631\u062a identity \u0648 \u06cc\u0627 \u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631 \u0627\u0632 \u0646\u0648\u0639 uniqueidentifier \u062a\u0639\u0631\u06cc\u0641 \u0634\u0648\u062f \u0648 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f.<\/p>\n\n\n\n<p>\u0628\u0647 \u0633\u0647 \u062d\u0627\u0644\u062a \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f:<\/p>\n\n\n\n<ul><li>\u0627\u06af\u0631 \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0644\u06cc\u062f \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u0645 \u0648 \u0627\u0633\u0645 \u0642\u06cc\u062f \u06a9\u0644\u06cc\u062f \u0627\u0647\u0645\u06cc\u062a \u0646\u062f\u0627\u0631\u062f \u0645\u0642\u0627\u0628\u0644 \u0641\u06cc\u0644\u062f \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0639\u0628\u0627\u0631\u062a &#8220;primary key&#8221; \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\nPersonGuid uniqueidentifier default newid() primary key,\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) not null,\nEmail varchar(100)\n)<\/pre>\n\n\n\n<ul><li>\u0627\u06af\u0631 \u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0641\u06cc\u0644\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f \u0648 \u0627\u0633\u0645 \u0642\u06cc\u062f \u0627\u0647\u0645\u06cc\u062a\u06cc \u0646\u062f\u0627\u0631\u062f \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u0627\u0635\u0644\u06cc \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\nPersonGuid uniqueidentifier default newid(),\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) not null,\nEmail varchar(100)\nprimary key (PersonGuid,code)\n)<\/pre>\n\n\n\n<ul><li>\u0627\u06af\u0631 \u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0641\u06cc\u0644\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u0644\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f \u0648 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u0627\u0633\u0645 \u0642\u06cc\u062f \u0647\u0645 \u0645\u0634\u062e\u0635 \u0634\u0648\u062f \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u06a9\u0644\u06cc\u062f\u0647\u0627\u06cc \u0627\u0635\u0644\u06cc \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f. <\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Person\n(\nPersonGuid uniqueidentifier default newid(),\ncode int identity,\nFirstName nvarchar(50),\nLastName nvarchar(max) not null,\nCodeMelli varchar(10) not null,\nEmail varchar(100)\nconstraint pk_person\nprimary key (PersonGuid,code)\n)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0633\u0627\u062e\u062a \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u062f\u0631 sql server<\/h3>\n\n\n\n<p>\u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u06cc\u06a9\u06cc \u062f\u06cc\u06af\u0631 \u0627\u0632 \u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0642\u06cc\u062f \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u062c\u062f\u0627\u0648\u0644 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u0634\u0648\u062f. \u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u06a9\u0627\u0644\u0627 \u0648 \u062c\u062f\u0648\u0644 \u0641\u0631\u0648\u0634 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u06a9\u0647 \u062f\u0631 \u0648\u0627\u0642\u0639 \u062c\u062f\u0648\u0644 \u06a9\u0627\u0644\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062c\u062f\u0648\u0644 \u067e\u062f\u0631 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f \u0648 \u062c\u062f\u0648\u0644 \u0641\u0631\u0648\u0634 \u062c\u062f\u0648\u0644 \u0641\u0631\u0632\u0646\u062f \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u0627\u0633\u062a.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table Product \n(\nGuid uniqueidentifier primary key,\nid int identity,\nProductName nvarchar(200)\n)\n\ncreate table sales\n(\nGuid uniqueidentifier primary key,\nproductGuid uniqueidentifier foreign key references product (Guid), \ncode int identity,\nQuantity int,\nprice float\n)<\/pre>\n\n\n\n<p>\u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc  \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0631\u0627 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f: <\/p>\n\n\n\n<ul><li>\u062f\u0631\u062c \u0631\u06a9\u0648\u0631\u062f \u0641\u0631\u0632\u0646\u062f (\u062c\u062f\u0648\u0644\u06cc \u06a9\u0647 \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u062c\u062f\u0648\u0644 \u0645\u0631\u062c\u0639 \u0627\u0633\u062a) \u0628\u062f\u0648\u0646 \u0648\u062c\u0648\u062f \u067e\u062f\u0631 (\u062c\u062f\u0648\u0644\u06cc \u06a9\u0647 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06a9\u0644\u06cc\u062f \u0627\u0635\u0644\u06cc \u0628\u0627 \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u062c\u062f\u0648\u0644 \u0641\u0631\u0632\u0646\u062f \u062f\u0631 \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u0633\u062a). \u0628\u0637\u0648\u0631\u0645\u062b\u0627\u0644 \u0627\u0645\u06a9\u0627\u0646 \u062b\u0628\u062a \u0622\u0645\u0627\u0631 \u0641\u0631\u0648\u0634 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0644\u0627\u06cc\u06cc \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0622\u0646  \u062f\u0631 \u062c\u062f\u0648\u0644 Product \u062b\u0628\u062a \u0646\u0634\u062f\u0647 \u0627\u0633\u062a \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f.<\/li><\/ul>\n\n\n\n<ul><li>\u0627\u0645\u06a9\u0627\u0646 \u062d\u0630\u0641 \u0631\u06a9\u0648\u0631\u062f \u067e\u062f\u0631\u06cc \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u0627\u0633\u062a \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u0628\u0637\u0648\u0631\u0645\u062b\u0627\u0644 \u0627\u06af\u0631 \u06a9\u0627\u0644\u0627\u06cc\u06cc \u0641\u0631\u0648\u0634 \u0631\u0641\u062a\u0647 \u0628\u0627\u0634\u062f \u0627\u0645\u06a9\u0627\u0646 \u062d\u0630\u0641 \u06a9\u0627\u0644\u0627 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 &#8220;on delete cascade&#8221; \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a \u0641\u0639\u0627\u0644 \u0634\u0648\u062f \u06a9\u0647 \u0627\u06af\u0631 \u06a9\u0627\u0644\u0627\u06cc\u06cc \u0641\u0631\u0648\u0634 \u0631\u0641\u062a\u0647 \u0627\u0633\u062a \u062f\u0631 \u0635\u0648\u0631\u062a \u062d\u0630\u0641 \u06a9\u0627\u0644\u0627 \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062a\u0645\u0627\u0645\u06cc \u0622\u0645\u0627\u0631 \u0641\u0631\u0648\u0634 \u0622\u0646 \u06a9\u0627\u0644\u0627 \u0646\u06cc\u0632 \u062d\u0630\u0641 \u0634\u0648\u062f. <\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table sales\n(\nGuid uniqueidentifier primary key,\nproductGuid uniqueidentifier foreign key references product (Guid) on delete cascade, \ncode int identity,\nQuantity int,\nprice float\n)<\/pre>\n\n\n\n<ul><li>\u0627\u0645\u06a9\u0627\u0646 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062f \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u067e\u062f\u0631 \u0628\u0627 \u0641\u0631\u0632\u0646\u062f \u062f\u0631 \u067e\u062f\u0631\u0627\u0646 \u062f\u0627\u0631\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f. \u0628\u0637\u0648\u0631\u0645\u062b\u0627\u0644 \u0627\u0645\u06a9\u0627\u0646 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062f Guid \u062f\u0631 \u062c\u062f\u0648\u0644 \u06a9\u0627\u0644\u0627 \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u0622\u0645\u0627\u0631 \u0641\u0631\u0648\u0634 \u0627\u0633\u062a \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 &#8220;on update cascade&#8221; \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a \u0641\u0639\u0627\u0644 \u0634\u0648\u062f \u06a9\u0647 \u0627\u06af\u0631 \u06a9\u0627\u0644\u0627\u06cc\u06cc \u0641\u0631\u0648\u0634 \u0631\u0641\u062a\u0647 \u0627\u0633\u062a \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0641\u06cc\u0644\u062f \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u06a9\u0627\u0644\u0627 (\u0628\u0637\u0648\u0631\u0645\u062b\u0627\u0644 Guid) \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0641\u06cc\u0644\u062f ProductGuid \u062a\u0645\u0627\u0645\u06cc \u0622\u0645\u0627\u0631 \u0641\u0631\u0648\u0634 \u0622\u0646 \u06a9\u0627\u0644\u0627 \u0646\u06cc\u0632 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0634\u0648\u062f.  <\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table sales\n(\nGuid uniqueidentifier primary key,\nproductGuid uniqueidentifier foreign key references product (Guid) on update cascade, \ncode int identity,\nQuantity int,\nprice float\n)<\/pre>\n\n\n\n<p>\u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0647\u0631 \u062f\u0648 \u062f\u0633\u062a\u0648\u0631 &#8221; on delete cascade &#8221; \u0648 &#8221; on update cascade &#8221; \u0631\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0641\u06cc\u0644\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">create table sales\n(\nGuid uniqueidentifier primary key,\nproductGuid uniqueidentifier foreign key references product (Guid) on delete cascade on update cascade, \ncode int identity,\nQuantity int,\nprice float\n)<\/pre>\n<footer class=\"author_bio_section\" ><div class=\"author_details row\"><div class=\"col-sm-2\"><img alt='' src='https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=150&#038;d=mm&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=300&#038;d=mm&#038;r=g 2x' class='avatar avatar-150 photo' height='150' width='150' loading='lazy' decoding='async'\/><\/div><div class=\"col-sm-10\"><h4 class=\"author_name\">\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc<\/h4><p>\u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u062e\u062a\u0647 \u0645\u0647\u0646\u062f\u0633\u06cc \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631 - \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u060c \u0639\u0644\u0627\u0642\u0645\u0646\u062f \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0648 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/p><\/div><\/div><hr class=\"mt-0\"><a class=\"btn btn-info btn-sm mr-2\" href=\"https:\/\/ostovaee.ir\/fa\/author\/roni\/\">\u0645\u0642\u0627\u0644\u0647\u200c\u0647\u0627\u06cc \u0645\u0646 (18)<\/a><a class=\"btn btn-info btn-sm\"  href=\"https:\/\/ostovaee.ir\/fa\/author-products\/roni\">\u0645\u062d\u0635\u0648\u0644\u0627\u062a \u0645\u0646 (2)<\/a><\/footer>","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0622\u0645\u0648\u0632\u0634 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u0628\u0627 \u0627\u0646\u0648\u0627\u0639 \u062f\u0627\u062f\u0647 \u0648 \u062f\u0633\u062a\u0648\u0631 \u0627\u06cc\u062c\u0627\u062f \u062c\u062f\u0648\u0644 \u062f\u0631 sql \u0622\u0634\u0646\u0627 \u0634\u062f\u06cc\u062f. [&hellip;]<\/p>\n","protected":false},"author":507,"featured_media":42633,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[86],"tags":[214,211,216],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v20.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL | \u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 | \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc<\/title>\n<meta name=\"description\" content=\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL\" \/>\n<meta property=\"og:description\" content=\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-22T20:25:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-11T09:15:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2020\/03\/SQL-Keys-Ostovaee-\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"953\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\"},\"author\":{\"name\":\"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/f83b494f3278368416b009bc35cd2264\"},\"headline\":\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL\",\"datePublished\":\"2020-03-22T20:25:00+00:00\",\"dateModified\":\"2020-05-11T09:15:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\"},\"wordCount\":96,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/#organization\"},\"keywords\":[\"\u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\",\"\u0627\u06cc\u062c\u0627\u062f \u062c\u062f\u0648\u0644 \u062f\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\",\"\u0633\u0627\u062e\u062a \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u062f\u0631 sql server\"],\"articleSection\":[\"Microsoft Sql Server\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\",\"url\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\",\"name\":\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL | \u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 | \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\",\"isPartOf\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/#website\"},\"datePublished\":\"2020-03-22T20:25:00+00:00\",\"dateModified\":\"2020-05-11T09:15:06+00:00\",\"description\":\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.\",\"breadcrumb\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/ostovaee.ir\/fa\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft Sql Server\",\"item\":\"https:\/\/ostovaee.ir\/fa\/category\/microsoft-sql-server\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#website\",\"url\":\"https:\/\/ostovaee.ir\/fa\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\",\"description\":\"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc | \u062a\u062c\u0631\u0628\u0647 \u06cc\u06a9 \u062d\u0633 \u0631\u0648\u06cc\u0627\u06cc\u06cc \u0628\u0627 \u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\",\"publisher\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ostovaee.ir\/fa\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#organization\",\"name\":\"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\",\"url\":\"https:\/\/ostovaee.ir\/fa\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/06\/Ostovaee-Logo-play.png\",\"contentUrl\":\"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/06\/Ostovaee-Logo-play.png\",\"width\":245,\"height\":245,\"caption\":\"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc\"},\"image\":{\"@id\":\"https:\/\/ostovaee.ir\/fa\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/f83b494f3278368416b009bc35cd2264\",\"name\":\"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=96&d=mm&r=g\",\"caption\":\"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc\"},\"description\":\"\u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u062e\u062a\u0647 \u0645\u0647\u0646\u062f\u0633\u06cc \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631 - \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u060c \u0639\u0644\u0627\u0642\u0645\u0646\u062f \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0648 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\",\"url\":\"https:\/\/ostovaee.ir\/fa\/author\/roni\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL | \u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 | \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","description":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL","og_description":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.","og_url":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/","og_site_name":"\u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","article_published_time":"2020-03-22T20:25:00+00:00","article_modified_time":"2020-05-11T09:15:06+00:00","og_image":[{"width":953,"height":300,"url":"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2020\/03\/SQL-Keys-Ostovaee-\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc.jpg","type":"image\/jpeg"}],"author":"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"2 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#article","isPartOf":{"@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/"},"author":{"name":"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc","@id":"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/f83b494f3278368416b009bc35cd2264"},"headline":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL","datePublished":"2020-03-22T20:25:00+00:00","dateModified":"2020-05-11T09:15:06+00:00","mainEntityOfPage":{"@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/"},"wordCount":96,"commentCount":0,"publisher":{"@id":"https:\/\/ostovaee.ir\/fa\/#organization"},"keywords":["\u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647","\u0627\u06cc\u062c\u0627\u062f \u062c\u062f\u0648\u0644 \u062f\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633","\u0633\u0627\u062e\u062a \u06a9\u0644\u06cc\u062f \u062e\u0627\u0631\u062c\u06cc \u062f\u0631 sql server"],"articleSection":["Microsoft Sql Server"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/","url":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/","name":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL | \u0627\u0646\u0648\u0627\u0639 constraint \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 | \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","isPartOf":{"@id":"https:\/\/ostovaee.ir\/fa\/#website"},"datePublished":"2020-03-22T20:25:00+00:00","dateModified":"2020-05-11T09:15:06+00:00","description":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 sql | \u0628\u0647 \u06a9\u0645\u06a9 \u0642\u06cc\u062f\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u06cc\u06a9\u0633\u0631\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0633\u0627\u062e\u062a \u062c\u062f\u0648\u0644 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a \u0635\u062d\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u062f.","breadcrumb":{"@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ostovaee.ir\/fa\/different-types-sql-keys\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/ostovaee.ir\/fa\/"},{"@type":"ListItem","position":2,"name":"Microsoft Sql Server","item":"https:\/\/ostovaee.ir\/fa\/category\/microsoft-sql-server\/"},{"@type":"ListItem","position":3,"name":"\u0627\u0646\u0648\u0627\u0639 \u06a9\u0644\u06cc\u062f \u062f\u0631 SQL"}]},{"@type":"WebSite","@id":"https:\/\/ostovaee.ir\/fa\/#website","url":"https:\/\/ostovaee.ir\/fa\/","name":"\u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","description":"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc | \u062a\u062c\u0631\u0628\u0647 \u06cc\u06a9 \u062d\u0633 \u0631\u0648\u06cc\u0627\u06cc\u06cc \u0628\u0627 \u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","publisher":{"@id":"https:\/\/ostovaee.ir\/fa\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ostovaee.ir\/fa\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/ostovaee.ir\/fa\/#organization","name":"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc","url":"https:\/\/ostovaee.ir\/fa\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/ostovaee.ir\/fa\/#\/schema\/logo\/image\/","url":"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/06\/Ostovaee-Logo-play.png","contentUrl":"https:\/\/ostovaee.ir\/fa\/wp-content\/uploads\/2019\/06\/Ostovaee-Logo-play.png","width":245,"height":245,"caption":"\u0627\u0633\u062a\u0648\u0627\u06cc\u06cc"},"image":{"@id":"https:\/\/ostovaee.ir\/fa\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/f83b494f3278368416b009bc35cd2264","name":"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/ostovaee.ir\/fa\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7efd2bff7ccd8c87b70e411c8b152b5e?s=96&d=mm&r=g","caption":"\u0631\u0648\u0646\u0627\u06a9 \u062d\u06cc\u0627\u062a \u063a\u06cc\u0628\u06cc"},"description":"\u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u062e\u062a\u0647 \u0645\u0647\u0646\u062f\u0633\u06cc \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631 - \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u060c \u0639\u0644\u0627\u0642\u0645\u0646\u062f \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0648 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633","url":"https:\/\/ostovaee.ir\/fa\/author\/roni\/"}]}},"views":3722,"_links":{"self":[{"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/posts\/41807"}],"collection":[{"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/users\/507"}],"replies":[{"embeddable":true,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/comments?post=41807"}],"version-history":[{"count":0,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/posts\/41807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/media\/42633"}],"wp:attachment":[{"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/media?parent=41807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/categories?post=41807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ostovaee.ir\/fa\/wp-json\/wp\/v2\/tags?post=41807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}