├── .gitattributes ├── .gitignore ├── README.md ├── command ├── Start.md ├── delete.md ├── drop.md ├── insert.md └── select.md ├── desc.png └── sql form ├── sql form.sln └── sql form ├── App.config ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Program.cs ├── Properties ├── AssemblyInfo.cs ├── Resources.Designer.cs ├── Resources.resx ├── Settings.Designer.cs └── Settings.settings ├── VTune Profiler Results └── sql form │ ├── r000hs │ ├── .norun │ ├── config │ │ ├── analysis_type.cfg │ │ ├── collection.cfg │ │ ├── context_values.cfg │ │ ├── log.cfg │ │ ├── runss.options │ │ └── state.cfg │ ├── data.0 │ │ ├── 17532-15072.0-18848.0.th │ │ ├── 17532-15072.0-18848.0.th.aux │ │ ├── 17532-15072.0-20536.0.th │ │ ├── 17532-15072.0-20536.0.th.aux │ │ ├── 17532-15072.0-7936.0.th │ │ ├── 17532-15072.0-7936.0.th.aux │ │ ├── 17532-15072.0-9624.0.th │ │ ├── 17532-15072.0-9624.0.th.aux │ │ ├── 17532-15072.0.trace │ │ ├── 17532-15072.0.trace.aux │ │ ├── EXON.15072.jit │ │ └── systemcollector-22892-EXON.sc │ ├── r000hs.vtune │ └── sqlite-db │ │ ├── _cache_grouper_data4_dd_thread │ │ └── container.metadata │ │ ├── dicer.db │ │ ├── grouper.metadata │ │ └── timelinedb │ │ └── directory.xml │ └── sql form.vtuneproj └── sql form.csproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Learn-SQL 2 |
3 | SQL 배우기 4 | 5 | ## Blog 6 | command 폴더 안에 markdown 파일들을 보면서 공부하세요! 7 | (참고로 저도 배우는 중이니 오타나 잘못된 정보가 있으면 이슈로 말해주세요.) 8 | 9 | ## SQL Editor 10 | SQL을 더 공부하려고 만들었습니다 sql Form 폴더를 참고하세요!
11 | SQL Editor 을 만들고 있습니다! 12 | -------------------------------------------------------------------------------- /command/Start.md: -------------------------------------------------------------------------------- 1 | # Learn-SQL 2 | SQL 배우기 3 | 4 | ## 주의 사항 5 | - 필자는 MySQL 을 사용한다 6 | - 필자는 C# 을 사용한다 7 | 8 | ## SQL 이란? 9 | SQL은 관계형 데이터베이스 관리 시스템(RDBMS)의 데이터를 관리하기 위해 설계된 특수 목적의 프로그래밍 언어이다.
10 | 관계형 데이터 베이스 관리 시스템에서 자료의 검색과 관리, 데이터베이스 스키마 생성과 수정,
11 | 데이터 베이스 객체 접근 조정 관리를 위해 고안되었다.
12 | 많은 수의 데이터베이스 관련 프로그램들이 SQL을 표준으로 채택하고 있다.
13 | \[위키디피아\] 14 | -------------------------------------------------------------------------------- /command/delete.md: -------------------------------------------------------------------------------- 1 | ## delete : 데이터 삭제
2 | MySQL에서는 DELETE 문을 사용하여 테이블의 레코드를 삭제할 수 있습니다.
3 | 4 | ### 형식
5 | DELETE FROM 테이블이름 WHERE 필드이름=데이터값;
6 | DELETE 문은 해당 테이블에서 WHERE 절의 조건을 만족하는 레코드만을 삭제합니다.
7 | 즉, 테이블에서 명시된 필드와, 그 값이 일치하는 레코드만을 삭제해 줍니다.
8 | 만약 WHERE 절을 생략하면, 해당 테이블에 저장된 모든 데이터가 삭제됩니다.
9 |
10 | DELETE FROM 테이블이름;
11 |
12 | 이때 테이블에 저장된 모든 데이터가 삭제되더라도 테이블은 여전히 남아있게 됩니다.
13 | 해당 테이블까지 삭제하고 싶을 때는 DROP TABLE 문을 사용해야 합니다.
14 |
15 | 다음 예제는 Reservation 테이블에서 Name 필드의 값이 '홍길동'인 모든 레코드를 삭제하는 예제입니다.
16 |
17 | ### 예제 18 | DELETE FROM Reservation WHERE Name = '홍길동'; 19 | 20 | -------------------------------------------------------------------------------- /command/drop.md: -------------------------------------------------------------------------------- 1 | ## drop : 테이블, 데이터베이스 삭제
2 | 테이블과 데이터베이스를 삭제할 수 있는 drop 문
3 | DELETE 문과는 다르게 테이블 그 자체 가 지워진다.
4 | 5 | ### 형식
6 | DROP TABLE [테이블 이름]
7 | DROP DATABASE [데이터 베이스 이름]
8 | 9 | ### 예제 10 | DROP TABLE PLAYER;
11 | -------------------------------------------------------------------------------- /command/insert.md: -------------------------------------------------------------------------------- 1 | ## insert : 삽입 2 | 3 | ### 형식
4 | insert into 테이블이름(컬럼 이름) values(데이터);
5 |
6 | 7 | ### 예
8 | insert into person(name, age, gender, grade) values('YoWu', '24', '남', '3');
9 | 특정 컬럼에만 값을 넣을 경우 컬럼 이름을 넣어주면 된다. 컬럼명 미기재시 모든 컬럼에 순차적으로 데이터가 입력된다.
10 | -------------------------------------------------------------------------------- /command/select.md: -------------------------------------------------------------------------------- 1 | ## select : 데이터 조회 2 | ### 형식
3 | select 테이블명 from 테이블명; : **일반조회**
4 | select 조회할 컬럼명 from 테이블명 where 조건컬럼명 = 조건데이터; : **조건조회**
5 | select 조회할 컬럼명 from 테이블명 where 조건 and 조건; : **다중조건조회**
6 |
7 | 8 | ### 예
9 | select * from person; : person 테이블의 모든 데이터 조회
10 | select * from person where age=24; : person의 데이터중 age의 값이 24인 데이터만 조회
11 | select name from person where gender='남'; : person의 데이터 중 gender의 값이 '남'인 데이터의 name 값 조회
12 | select name, age from person where gender='남' and age>20;: person의 데이터 중 gender의 값이 '남'이면서 age가 20이상 데이터의 name, age 값 조회
13 |
-------------------------------------------------------------------------------- /desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/desc.png -------------------------------------------------------------------------------- /sql form/sql form.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30011.22 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sql form", "sql form\sql form.csproj", "{6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {5E954E73-89AC-4196-917A-2F7DE5807DD5} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /sql form/sql form/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sql form/sql form/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace sql_form 2 | { 3 | partial class SQLEditor 4 | { 5 | /// 6 | /// 필수 디자이너 변수입니다. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 사용 중인 모든 리소스를 정리합니다. 12 | /// 13 | /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form 디자이너에서 생성한 코드 24 | 25 | /// 26 | /// 디자이너 지원에 필요한 메서드입니다. 27 | /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.dataGridView1 = new System.Windows.Forms.DataGridView(); 32 | this.name = new System.Windows.Forms.DataGridViewTextBoxColumn(); 33 | this.age = new System.Windows.Forms.DataGridViewTextBoxColumn(); 34 | this.start = new System.Windows.Forms.Button(); 35 | this.txt_name = new System.Windows.Forms.TextBox(); 36 | this.txt_age = new System.Windows.Forms.TextBox(); 37 | this.but_delete = new System.Windows.Forms.Button(); 38 | this.but_add = new System.Windows.Forms.Button(); 39 | this.lab_name = new System.Windows.Forms.Label(); 40 | this.lab_Age = new System.Windows.Forms.Label(); 41 | this.label1 = new System.Windows.Forms.Label(); 42 | this.txt_editName = new System.Windows.Forms.TextBox(); 43 | this.txt_editAge = new System.Windows.Forms.TextBox(); 44 | this.but_edit = new System.Windows.Forms.Button(); 45 | this.label3 = new System.Windows.Forms.Label(); 46 | this.txt_willName = new System.Windows.Forms.TextBox(); 47 | this.label4 = new System.Windows.Forms.Label(); 48 | this.txt_willAge = new System.Windows.Forms.TextBox(); 49 | this.lab_editAge = new System.Windows.Forms.Label(); 50 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); 51 | this.SuspendLayout(); 52 | // 53 | // dataGridView1 54 | // 55 | this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 56 | this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 57 | this.name, 58 | this.age}); 59 | this.dataGridView1.Location = new System.Drawing.Point(12, 12); 60 | this.dataGridView1.Name = "dataGridView1"; 61 | this.dataGridView1.RowTemplate.Height = 23; 62 | this.dataGridView1.Size = new System.Drawing.Size(240, 368); 63 | this.dataGridView1.TabIndex = 0; 64 | this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick); 65 | // 66 | // name 67 | // 68 | this.name.HeaderText = "name"; 69 | this.name.Name = "name"; 70 | // 71 | // age 72 | // 73 | this.age.HeaderText = "age"; 74 | this.age.Name = "age"; 75 | // 76 | // start 77 | // 78 | this.start.BackColor = System.Drawing.SystemColors.Control; 79 | this.start.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; 80 | this.start.FlatAppearance.BorderColor = System.Drawing.SystemColors.Control; 81 | this.start.FlatStyle = System.Windows.Forms.FlatStyle.System; 82 | this.start.Font = new System.Drawing.Font("Zexo", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 83 | this.start.ForeColor = System.Drawing.Color.Black; 84 | this.start.Location = new System.Drawing.Point(12, 386); 85 | this.start.Name = "start"; 86 | this.start.Size = new System.Drawing.Size(127, 52); 87 | this.start.TabIndex = 1; 88 | this.start.Text = "리로드"; 89 | this.start.UseVisualStyleBackColor = false; 90 | this.start.Click += new System.EventHandler(this.start_Click_1); 91 | // 92 | // txt_name 93 | // 94 | this.txt_name.Location = new System.Drawing.Point(258, 78); 95 | this.txt_name.Name = "txt_name"; 96 | this.txt_name.Size = new System.Drawing.Size(100, 21); 97 | this.txt_name.TabIndex = 2; 98 | // 99 | // txt_age 100 | // 101 | this.txt_age.Location = new System.Drawing.Point(368, 78); 102 | this.txt_age.Name = "txt_age"; 103 | this.txt_age.Size = new System.Drawing.Size(100, 21); 104 | this.txt_age.TabIndex = 3; 105 | // 106 | // but_delete 107 | // 108 | this.but_delete.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 109 | this.but_delete.Location = new System.Drawing.Point(258, 105); 110 | this.but_delete.Name = "but_delete"; 111 | this.but_delete.Size = new System.Drawing.Size(96, 52); 112 | this.but_delete.TabIndex = 4; 113 | this.but_delete.Text = "삭제"; 114 | this.but_delete.UseVisualStyleBackColor = true; 115 | this.but_delete.Click += new System.EventHandler(this.but_delete_Click); 116 | // 117 | // but_add 118 | // 119 | this.but_add.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 120 | this.but_add.Location = new System.Drawing.Point(364, 105); 121 | this.but_add.Name = "but_add"; 122 | this.but_add.Size = new System.Drawing.Size(92, 52); 123 | this.but_add.TabIndex = 5; 124 | this.but_add.Text = "추가"; 125 | this.but_add.UseVisualStyleBackColor = true; 126 | this.but_add.Click += new System.EventHandler(this.but_add_Click); 127 | // 128 | // lab_name 129 | // 130 | this.lab_name.AutoSize = true; 131 | this.lab_name.BackColor = System.Drawing.Color.Transparent; 132 | this.lab_name.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 133 | this.lab_name.Location = new System.Drawing.Point(254, 54); 134 | this.lab_name.Name = "lab_name"; 135 | this.lab_name.Size = new System.Drawing.Size(58, 21); 136 | this.lab_name.TabIndex = 6; 137 | this.lab_name.Text = "Name"; 138 | // 139 | // lab_Age 140 | // 141 | this.lab_Age.AutoSize = true; 142 | this.lab_Age.BackColor = System.Drawing.Color.Transparent; 143 | this.lab_Age.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 144 | this.lab_Age.Location = new System.Drawing.Point(364, 54); 145 | this.lab_Age.Name = "lab_Age"; 146 | this.lab_Age.Size = new System.Drawing.Size(43, 21); 147 | this.lab_Age.TabIndex = 7; 148 | this.lab_Age.Text = "Age"; 149 | // 150 | // label1 151 | // 152 | this.label1.AutoSize = true; 153 | this.label1.BackColor = System.Drawing.Color.Transparent; 154 | this.label1.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 155 | this.label1.Location = new System.Drawing.Point(255, 190); 156 | this.label1.Name = "label1"; 157 | this.label1.Size = new System.Drawing.Size(110, 16); 158 | this.label1.TabIndex = 8; 159 | this.label1.Text = "Will Edit Name"; 160 | // 161 | // txt_editName 162 | // 163 | this.txt_editName.Location = new System.Drawing.Point(262, 210); 164 | this.txt_editName.Name = "txt_editName"; 165 | this.txt_editName.Size = new System.Drawing.Size(100, 21); 166 | this.txt_editName.TabIndex = 9; 167 | // 168 | // txt_editAge 169 | // 170 | this.txt_editAge.Location = new System.Drawing.Point(368, 210); 171 | this.txt_editAge.Name = "txt_editAge"; 172 | this.txt_editAge.Size = new System.Drawing.Size(100, 21); 173 | this.txt_editAge.TabIndex = 11; 174 | // 175 | // but_edit 176 | // 177 | this.but_edit.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 178 | this.but_edit.Location = new System.Drawing.Point(262, 328); 179 | this.but_edit.Name = "but_edit"; 180 | this.but_edit.Size = new System.Drawing.Size(96, 52); 181 | this.but_edit.TabIndex = 12; 182 | this.but_edit.Text = "편집"; 183 | this.but_edit.UseVisualStyleBackColor = true; 184 | this.but_edit.Click += new System.EventHandler(this.but_edit_Click); 185 | // 186 | // label3 187 | // 188 | this.label3.AutoSize = true; 189 | this.label3.BackColor = System.Drawing.Color.Transparent; 190 | this.label3.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 191 | this.label3.Location = new System.Drawing.Point(258, 257); 192 | this.label3.Name = "label3"; 193 | this.label3.Size = new System.Drawing.Size(58, 21); 194 | this.label3.TabIndex = 13; 195 | this.label3.Text = "Name"; 196 | // 197 | // txt_willName 198 | // 199 | this.txt_willName.Location = new System.Drawing.Point(262, 281); 200 | this.txt_willName.Name = "txt_willName"; 201 | this.txt_willName.Size = new System.Drawing.Size(100, 21); 202 | this.txt_willName.TabIndex = 14; 203 | // 204 | // label4 205 | // 206 | this.label4.AutoSize = true; 207 | this.label4.BackColor = System.Drawing.Color.Transparent; 208 | this.label4.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 209 | this.label4.Location = new System.Drawing.Point(368, 257); 210 | this.label4.Name = "label4"; 211 | this.label4.Size = new System.Drawing.Size(43, 21); 212 | this.label4.TabIndex = 15; 213 | this.label4.Text = "Age"; 214 | // 215 | // txt_willAge 216 | // 217 | this.txt_willAge.Location = new System.Drawing.Point(368, 281); 218 | this.txt_willAge.Name = "txt_willAge"; 219 | this.txt_willAge.Size = new System.Drawing.Size(100, 21); 220 | this.txt_willAge.TabIndex = 16; 221 | // 222 | // lab_editAge 223 | // 224 | this.lab_editAge.AutoSize = true; 225 | this.lab_editAge.BackColor = System.Drawing.Color.Transparent; 226 | this.lab_editAge.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); 227 | this.lab_editAge.Location = new System.Drawing.Point(365, 191); 228 | this.lab_editAge.Name = "lab_editAge"; 229 | this.lab_editAge.Size = new System.Drawing.Size(96, 16); 230 | this.lab_editAge.TabIndex = 17; 231 | this.lab_editAge.Text = "Will Edit Age"; 232 | // 233 | // SQLEditor 234 | // 235 | this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); 236 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 237 | this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; 238 | this.ClientSize = new System.Drawing.Size(800, 450); 239 | this.Controls.Add(this.lab_editAge); 240 | this.Controls.Add(this.txt_willAge); 241 | this.Controls.Add(this.label4); 242 | this.Controls.Add(this.txt_willName); 243 | this.Controls.Add(this.label3); 244 | this.Controls.Add(this.but_edit); 245 | this.Controls.Add(this.txt_editAge); 246 | this.Controls.Add(this.txt_editName); 247 | this.Controls.Add(this.label1); 248 | this.Controls.Add(this.lab_Age); 249 | this.Controls.Add(this.lab_name); 250 | this.Controls.Add(this.but_add); 251 | this.Controls.Add(this.but_delete); 252 | this.Controls.Add(this.txt_age); 253 | this.Controls.Add(this.txt_name); 254 | this.Controls.Add(this.start); 255 | this.Controls.Add(this.dataGridView1); 256 | this.Name = "SQLEditor"; 257 | this.Text = "SQL Editor"; 258 | this.Load += new System.EventHandler(this.Form1_Load); 259 | ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); 260 | this.ResumeLayout(false); 261 | this.PerformLayout(); 262 | 263 | } 264 | 265 | #endregion 266 | 267 | private System.Windows.Forms.DataGridView dataGridView1; 268 | private System.Windows.Forms.DataGridViewTextBoxColumn name; 269 | private System.Windows.Forms.DataGridViewTextBoxColumn age; 270 | private System.Windows.Forms.Button start; 271 | private System.Windows.Forms.TextBox txt_name; 272 | private System.Windows.Forms.TextBox txt_age; 273 | private System.Windows.Forms.Button but_delete; 274 | private System.Windows.Forms.Button but_add; 275 | private System.Windows.Forms.Label lab_name; 276 | private System.Windows.Forms.Label lab_Age; 277 | private System.Windows.Forms.Label label1; 278 | private System.Windows.Forms.TextBox txt_editName; 279 | private System.Windows.Forms.TextBox txt_editAge; 280 | private System.Windows.Forms.Button but_edit; 281 | private System.Windows.Forms.Label label3; 282 | private System.Windows.Forms.TextBox txt_willName; 283 | private System.Windows.Forms.Label label4; 284 | private System.Windows.Forms.TextBox txt_willAge; 285 | private System.Windows.Forms.Label lab_editAge; 286 | } 287 | } 288 | 289 | -------------------------------------------------------------------------------- /sql form/sql form/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using MySql.Data; 11 | using MySql.Data.MySqlClient; 12 | using System.Data.SqlClient; 13 | namespace sql_form 14 | { 15 | public partial class SQLEditor : Form 16 | { 17 | public SQLEditor() 18 | { 19 | InitializeComponent(); 20 | } 21 | static string databaseName = "data1"; 22 | static string tableName = "data1.new_table"; 23 | 24 | static MySqlConnection connection = new MySqlConnection($"Server=localhost;Database={databaseName};Uid=root;Pwd=1exonhappy1234;"); 25 | 26 | private void Form1_Load(object sender, EventArgs e) 27 | { 28 | LookUp(); 29 | 30 | } 31 | 32 | 33 | private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) 34 | { 35 | 36 | } 37 | 38 | private void LookUp() 39 | { 40 | MySqlCommand query = connection.CreateCommand(); 41 | query.CommandText = "SELECT *"; 42 | query.CommandText += $"FROM {tableName}"; 43 | 44 | try 45 | { 46 | connection.Open(); 47 | 48 | MySqlDataReader reader = query.ExecuteReader(); 49 | dataGridView1.Rows.Clear(); 50 | 51 | for (int i = 0; reader.Read(); i++) 52 | { 53 | dataGridView1.Rows.Add(); 54 | dataGridView1.Rows[i].Cells["name"].Value = reader["name"].ToString(); 55 | dataGridView1.Rows[i].Cells["age"].Value = reader["age"].ToString(); 56 | } 57 | } 58 | catch (Exception Ex) 59 | { 60 | MessageBox.Show(Ex.Message); 61 | } 62 | finally 63 | { 64 | connection.Close(); 65 | } 66 | } 67 | 68 | private void TryMessage(MySqlCommand command) 69 | { 70 | try //예외 처리 71 | { 72 | // 만약에 내가처리한 Mysql에 정상적으로 들어갔다면 메세지를 보여주라는 뜻이다 73 | if (command.ExecuteNonQuery() == 1) 74 | { 75 | MessageBox.Show("정상적으로 처리 됬습니다."); 76 | } 77 | else 78 | { 79 | MessageBox.Show("오류가 났습니다. \n다시 한번 시도해주세요."); 80 | } 81 | } 82 | catch (Exception ex) 83 | { 84 | MessageBox.Show(ex.Message); 85 | } 86 | } 87 | 88 | private void start_Click_1(object sender, EventArgs e) 89 | { 90 | LookUp(); 91 | } 92 | 93 | private void but_delete_Click(object sender, EventArgs e) 94 | { 95 | if (txt_name.Text == "all" && txt_age.Text == "all") 96 | { 97 | string insertQuery = $"DELETE FROM {tableName}"; 98 | connection.Open(); 99 | MySqlCommand command = new MySqlCommand(insertQuery, connection); 100 | } 101 | else 102 | { 103 | string insertQuery = $"DELETE FROM {tableName} WHERE name = \"{txt_name.Text}\" AND age = {txt_age.Text};"; 104 | 105 | 106 | connection.Open(); 107 | MySqlCommand command = new MySqlCommand(insertQuery, connection); 108 | TryMessage(command); 109 | } 110 | 111 | connection.Close(); 112 | LookUp(); 113 | } 114 | 115 | private void but_add_Click(object sender, EventArgs e) 116 | { 117 | 118 | string insertQuery = $"INSERT INTO {tableName}(name,age) VALUES('{ txt_name.Text} ',{txt_age.Text} )"; 119 | 120 | 121 | connection.Open(); 122 | MySqlCommand command = new MySqlCommand(insertQuery, connection); 123 | TryMessage(command); 124 | 125 | 126 | connection.Close(); 127 | LookUp(); 128 | } 129 | 130 | private void but_edit_Click(object sender, EventArgs e) 131 | { 132 | string insertQuery = $"UPDATE data1.new_table SET (name, age) = (\"{txt_willName.Text}\", {txt_willAge.Text})" + 133 | $"WHERE name = \"{txt_editName.Text}\" AND age = {txt_editAge.Text};"; 134 | connection.Open(); 135 | 136 | MySqlCommand command = new MySqlCommand(insertQuery, connection); 137 | TryMessage(command); 138 | 139 | connection.Close(); 140 | LookUp(); 141 | } 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /sql form/sql form/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | True 122 | 123 | 124 | True 125 | 126 | -------------------------------------------------------------------------------- /sql form/sql form/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace sql_form 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// 해당 애플리케이션의 주 진입점입니다. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new SQLEditor()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /sql form/sql form/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 6 | // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 7 | // 이러한 특성 값을 변경하세요. 8 | [assembly: AssemblyTitle("sql form")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("sql form")] 13 | [assembly: AssemblyCopyright("Copyright © 2020")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 18 | // 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 19 | // 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. 20 | [assembly: ComVisible(false)] 21 | 22 | // 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. 23 | [assembly: Guid("6c3542f4-097c-4c8e-bfbe-2ec3668cd1f7")] 24 | 25 | // 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. 26 | // 27 | // 주 버전 28 | // 부 버전 29 | // 빌드 번호 30 | // 수정 버전 31 | // 32 | // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 33 | // 기본값으로 할 수 있습니다. 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /sql form/sql form/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 이 코드는 도구를 사용하여 생성되었습니다. 4 | // 런타임 버전:4.0.30319.42000 5 | // 6 | // 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 7 | // 이러한 변경 내용이 손실됩니다. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace sql_form.Properties 12 | { 13 | 14 | 15 | /// 16 | /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. 17 | /// 18 | // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder 19 | // 클래스에서 자동으로 생성되었습니다. 20 | // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 21 | // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("sql_form.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 56 | /// 재정의합니다. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /sql form/sql form/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /sql form/sql form/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace sql_form.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /sql form/sql form/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/.norun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/.norun -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/analysis_type.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %HotspotsAtypeName 5 | %HotspotsAtypeShortName 6 | %HotspotsAtypeDescription 7 | %HotspotsAtypeShortDescription 8 | hs 9 | hotspots 10 | 1 11 | 1 12 | configs.analysis_type-hotspots_f1101 13 | 14 | 15 | 16 | 17 | 18 | 19 | %HotspotsByCPUUsageViewpointName 20 | 21 | 22 | 23 | 24 | 25 | config://analysis_type/include/knobs.xsl? 26 | 27 | 28 | & 29 | 30 | 31 | 32 | 33 | 34 | 35 | %SamplingModeDescription 36 | 37 | hw 38 | hw 39 | 40 | 41 | 42 | 43 | 44 | false 45 | 46 | %EnableStackCollectionDescription 47 | false 48 | 49 | 50 | 51 | 52 | hotspotsGroup 53 | 54 | 55 | %SamplingModeDescription 56 | 57 | sw 58 | hw 59 | sw 60 | 61 | 62 | 63 | 64 | 65 | false 66 | 67 | %EnableStackCollectionDescription 68 | false 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | %SlowGoodFrameThresholdDescription 77 | 0.01 78 | 1024000 79 | 40 80 | 81 | 82 | %GoodFastFrameThresholdDescription 83 | 0.01 84 | 1024000 85 | 100 86 | 87 | 88 | 89 | true 90 | %EnableCharacterizationInsightsDescription 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | stack 117 | 10 118 | true 119 | 120 | 121 | 122 | java,dotnet,python 123 | 124 | 125 | java,python 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | , 151 | 152 | 153 | 154 | , 155 | 156 | 157 | 158 | true 159 | 160 | 161 | 162 | true 163 | 164 | 165 | runsa 166 | 167 | 168 | 169 | 170 | true 171 | all 172 | 173 | 174 | 175 | 176 | false 177 | true 178 | 179 | 180 | 181 | , 182 | 183 | 184 | 185 | 186 | , 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | true 195 | 196 | 197 | 198 | 199 | 200 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/collection.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/context_values.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/log.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/runss.options: -------------------------------------------------------------------------------- 1 | -r 2 | C:\Users\박시혁\Code\sql\sql form\sql form\VTune Profiler Results\sql form\r000hs 3 | --stack-stitching 4 | --data-limit-mb=1000 5 | --disk-space-limit=0 6 | --mrte-type=java,dotnet,python 7 | --itt-config=frame 8 | --itt-config=task,event,counter 9 | --stackwalk=offline 10 | --mrte-mode=auto 11 | --type=cpu:counters:nostack 12 | --type=cpu:stack 13 | --interval=10 14 | -- 15 | C:\Users\박시혁\Code\sql\sql form\sql form\bin\Debug\sql form.exe 16 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/config/state.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-18848.0.th: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-18848.0.th -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-18848.0.th.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-18848.0.th.aux -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-20536.0.th: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-20536.0.th -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-20536.0.th.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-20536.0.th.aux -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-7936.0.th: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-7936.0.th -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-7936.0.th.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-7936.0.th.aux -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-9624.0.th: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-9624.0.th -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-9624.0.th.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0-9624.0.th.aux -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0.trace -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0.trace.aux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/17532-15072.0.trace.aux -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/EXON.15072.jit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/EXON.15072.jit -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/systemcollector-22892-EXON.sc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/data.0/systemcollector-22892-EXON.sc -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/r000hs.vtune: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1588496323 5 | EXON 6 | windows 7 | Intel® VTune™ Profiler 2020 8 | 605129 9 | 16 10 | 8 11 | 1 12 | 3600000000 13 | 6 14 | 158 15 | 13 16 | Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz 17 | avx2 18 | 1588496323 19 | 1588496326 20 | 21 | hs 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/sqlite-db/_cache_grouper_data4_dd_thread/container.metadata: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/sqlite-db/dicer.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXON-Learn/Learn-SQL/e6c86d685db220c80517c3280eb7d3b8c57cb100/sql form/sql form/VTune Profiler Results/sql form/r000hs/sqlite-db/dicer.db -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/sqlite-db/grouper.metadata: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/r000hs/sqlite-db/timelinedb/directory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /sql form/sql form/VTune Profiler Results/sql form/sql form.vtuneproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | localhost 4 | 5 | 1588496316 6 | EXON 7 | windows 8 | Intel® VTune™ Profiler 2020 9 | 605129 10 | 16 11 | 8 12 | 1 13 | 3600000000 14 | 6 15 | 158 16 | 13 17 | Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz 18 | avx2 19 | 20 | 21 | 22 | 23 | 1 24 | 25 | C:\Users\박시혁\Code\sql\sql form\sql form 26 | true 27 | true 28 | 29 | 30 | 31 | 2 32 | 33 | 34 | 3 35 | 36 | C:\Users\박시혁\Code\sql\sql form\sql form 37 | true 38 | true 39 | 40 | 41 | 42 | 4 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | launch 51 | 52 | 53 | 54 | 55 | 56 | launch 57 | C:\Users\박시혁\Code\sql\sql form\sql form\bin\Debug\sql form.exe 58 | C:\Users\박시혁\Code\sql\sql form\sql form\bin\Debug 59 | 60 | false 61 | 62 | C:\Users\박시혁\Code\sql\sql form\sql form\VTune Profiler Results\sql form\r@@@{at} 63 | 64 | 65 | allowMultipleRuns 66 | false 67 | 68 | 69 | analyzeKvmGuest 70 | false 71 | 72 | 73 | analyzeSystemWide 74 | false 75 | 76 | 77 | cpuMask 78 | 79 | 80 | 81 | customCollector 82 | 83 | 84 | 85 | dataLimit 86 | 1000 87 | 88 | 89 | enableRing 90 | false 91 | 92 | 93 | finalizationMode 94 | fast 95 | 96 | 97 | followChild 98 | true 99 | 100 | 101 | followChildStrategy 102 | 103 | 104 | 105 | groupForFinalizationControl 106 | 107 | 108 | 109 | kvmGuestKallsyms 110 | 111 | 112 | 113 | kvmGuestModules 114 | 115 | 116 | 117 | kvmProfileGuest 118 | 119 | 120 | 121 | mrteMode 122 | auto 123 | 124 | 125 | targetDurationType 126 | short 127 | 128 | 129 | targetRingBuffer 130 | 0 131 | 132 | 133 | targetType 134 | launch 135 | 136 | 137 | traceMpi 138 | false 139 | 140 | 141 | tracingMode 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | C:\Program Files (x86)\IntelSWTools\VTune Profiler 2020\config\analysis_type\hotspots.cfg 152 | 153 | 154 | 155 | C:\Program Files (x86)\IntelSWTools\VTune Profiler 2020\config\analysis_type\hotspots.cfg 156 | 157 | 158 | enableCharacterizationInsights 159 | true 160 | 161 | 162 | enableStackCollect 163 | false 164 | 165 | 166 | goodFastFrameThreshold 167 | 100 168 | 169 | 170 | groupForCustomControl 171 | 172 | 173 | 174 | initialViewpoint 175 | %HotspotsByCPUUsageViewpointName 176 | 177 | 178 | samplingInterval 179 | 1 180 | 181 | 182 | samplingMode 183 | sw 184 | 185 | 186 | slowGoodFrameThreshold 187 | 40 188 | 189 | 190 | stackSizeCollect 191 | 0 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | -------------------------------------------------------------------------------- /sql form/sql form/sql form.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {6C3542F4-097C-4C8E-BFBE-2EC3668CD1F7} 8 | WinExe 9 | sql_form 10 | sql form 11 | v4.7.2 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | False 38 | D:\Downloads\mysql-connector-net-8.0.19-noinstall\v4.5.2\MySql.Data.dll 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | Form 55 | 56 | 57 | Form1.cs 58 | 59 | 60 | 61 | 62 | Form1.cs 63 | 64 | 65 | ResXFileCodeGenerator 66 | Resources.Designer.cs 67 | Designer 68 | 69 | 70 | True 71 | Resources.resx 72 | 73 | 74 | SettingsSingleFileGenerator 75 | Settings.Designer.cs 76 | 77 | 78 | True 79 | Settings.settings 80 | True 81 | 82 | 83 | 84 | 85 | 86 | 87 | --------------------------------------------------------------------------------