<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: The Dream Coding</title>
    <description>The latest articles on DEV Community by The Dream Coding (@thedreamcoding).</description>
    <link>https://dev.to/thedreamcoding</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F970994%2F0592e0db-bb29-4c32-b7ed-5deb7ca57911.jpg</url>
      <title>DEV Community: The Dream Coding</title>
      <link>https://dev.to/thedreamcoding</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thedreamcoding"/>
    <language>en</language>
    <item>
      <title>How to create Stored Procedure in MySQL</title>
      <dc:creator>The Dream Coding</dc:creator>
      <pubDate>Sun, 13 Nov 2022 00:53:31 +0000</pubDate>
      <link>https://dev.to/thedreamcoding/how-to-create-stored-procedure-in-mysql-3nk4</link>
      <guid>https://dev.to/thedreamcoding/how-to-create-stored-procedure-in-mysql-3nk4</guid>
      <description>&lt;h2&gt;
  
  
  =&amp;gt; syntaxe
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;drop procedure if exists name_proc;
delimiter $$
create procedure name_proc(parametrs ..)
begin
    -- statement
end 
$$

delimiter ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  =&amp;gt; To execute the stored procedure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Call name_proc(parametrs ..);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  i explaine how to create Stored Procedure in MySQL on youtube
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;click this =&amp;gt;&lt;/strong&gt; &lt;a href="https://www.youtube.com/watch?v=Yt8vJF2x-DI"&gt;vidéo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  this is my channel on youtube
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;click this =&amp;gt;&lt;/strong&gt; &lt;a href="https://www.youtube.com/channel/UC7EawDV9gGzPcYOLN3FrASQ"&gt;The Dream Coding&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>sql</category>
      <category>bigdata</category>
      <category>database</category>
    </item>
    <item>
      <title>How to use delimiter in MySQL</title>
      <dc:creator>The Dream Coding</dc:creator>
      <pubDate>Sat, 12 Nov 2022 10:11:53 +0000</pubDate>
      <link>https://dev.to/thedreamcoding/how-to-use-delimiter-in-mysql-521b</link>
      <guid>https://dev.to/thedreamcoding/how-to-use-delimiter-in-mysql-521b</guid>
      <description>&lt;p&gt;&lt;strong&gt;when writing SQL statements , we use &lt;br&gt;
the delimiter to separate betwene &lt;br&gt;
two Statements&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;delimiter ;
select * from school ;
delimiter $$
select * from student $$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;=&amp;gt;the default delimiter &lt;br&gt;
is semicolon  (;)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;select * from school ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;=&amp;gt; Setting a different the delimiter &lt;br&gt;
allows us to execute all statements &lt;br&gt;
as a single statements&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  for example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;delimiter $$
create function (para int) returns int
begin
-- statement 
end
$$
delimiter ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;=&amp;gt; in this statement we want to execute&lt;br&gt;
function or stored procedures in one&lt;br&gt;
statemente . so , we use dilimiter&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  i explaine how to use delimiter in MySQL on youtube
&lt;/h2&gt;

&lt;p&gt;click this =&amp;gt; &lt;a href="https://www.youtube.com/watch?v=j22I714hyMY"&gt;vidéo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  this is my channel on youtube
&lt;/h2&gt;

&lt;p&gt;click this =&amp;gt; &lt;a href="https://www.youtube.com/channel/UC7EawDV9gGzPcYOLN3FrASQ"&gt;The Dream Coding&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>sql</category>
      <category>database</category>
      <category>bigdata</category>
    </item>
    <item>
      <title>How to create function in MySQL</title>
      <dc:creator>The Dream Coding</dc:creator>
      <pubDate>Sat, 12 Nov 2022 09:49:44 +0000</pubDate>
      <link>https://dev.to/thedreamcoding/how-to-create-function-in-mysql-4lg0</link>
      <guid>https://dev.to/thedreamcoding/how-to-create-function-in-mysql-4lg0</guid>
      <description>&lt;h2&gt;
  
  
  1. Syntax
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;drop function if exists function_name ;
delimiter $$
CREATE FUNCTION function_name [ (parameter datatype [, parameter datatype]) ]
RETURNS return_datatype
BEGIN
    -- statements
END
$$
-- for use the function 
select function_name(parameter);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;drop function if exists countscoll;
delimiter $$
CREATE FUNCTION countscoll( cit int ) 
returns int 
begin 
   declare tota int ;
   set tota = ( select count(*) from school 
   where city = cit );
   return tota ;
end
$$
delimiter ;
select countscoll("new york");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. remark
&lt;/h2&gt;

&lt;p&gt;we use function when we return value or Variable&lt;/p&gt;

&lt;h2&gt;
  
  
  4. i explaine how to create function in MySQL on youtube
&lt;/h2&gt;

&lt;p&gt;click this =&amp;gt; &lt;a href="https://www.youtube.com/watch?v=PHnX5WppiBA&amp;amp;t=5s"&gt;vidéo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. this is my channel on youtube
&lt;/h2&gt;

&lt;p&gt;click this =&amp;gt; &lt;a href="https://www.youtube.com/channel/UC7EawDV9gGzPcYOLN3FrASQ"&gt;The Dream Coding&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>programming</category>
      <category>database</category>
      <category>mysql</category>
    </item>
  </channel>
</rss>
