<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sql on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/sql/</link>
    <description>Recent content in Sql on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 24 Feb 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/sql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SQL some concepts &amp; notes</title>
      <link>https://jose.castrillo.eu/post/sql/</link>
      <pubDate>Mon, 24 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/sql/</guid>
      <description>&lt;p&gt;SQL Structured Query Language, is a language designed to allow both technical and non-technical users query, manipulate, and transform data from a relational database.&lt;/p&gt;
&lt;p&gt;Some popular SQL databases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SQLite&lt;/li&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;Postgres&lt;/li&gt;
&lt;li&gt;Oracle&lt;/li&gt;
&lt;li&gt;Microsoft SQL Server&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Relational database:&lt;/p&gt;
&lt;p&gt;Represents a collection of related ( two-dimensional) tables.Each of the tables are similar to an Excel spreadsheet, with a fixed number of named columns and any number of rows of data.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;DDL&lt;/strong&gt; (Data Definition Language) refers to the CREATE, ALTER and DROP statements DDL allows to add / modify / delete the logical structures which contain the data or which allow users to access / maintain the data (databases, tables, keys, views&amp;hellip;). DDL is about &amp;ldquo;metadata&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DML&lt;/strong&gt; (Data Manipulation Language) refers to the INSERT, UPDATE and DELETE statements DML allows to add / modify / delete data itself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DQL&lt;/strong&gt; (Data Query Language) refers to the SELECT, SHOW and HELP statements (queries) SELECT is the main DQL instruction. It retrieves data you need. SHOW retrieves infos about the metadata. HELP&amp;hellip; is for people who need help.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DCL&lt;/strong&gt; (Data Control Language) refers to the GRANT and REVOKE statements DCL is used to grant / revoke permissions on databases and their contents. DCL is simple, but MySQL&amp;rsquo;s permissions are rather complex. DCL is about security.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DTL&lt;/strong&gt; (Data Transaction Language) refers to the START TRANSACTION, SAVEPOINT, COMMIT and ROLLBACK [TO SAVEPOINT] statements DTL is used to manage transactions (operations which include more instructions none of which can be executed if one of them fails).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some SQL queries:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
