<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.lordwektabyte.cat/index.php?action=history&amp;feed=atom&amp;title=ASIX%2FM10%2FUF1%2FA06%2FE1</id>
	<title>ASIX/M10/UF1/A06/E1 - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lordwektabyte.cat/index.php?action=history&amp;feed=atom&amp;title=ASIX%2FM10%2FUF1%2FA06%2FE1"/>
	<link rel="alternate" type="text/html" href="http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;action=history"/>
	<updated>2026-05-04T10:30:01Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=5108&amp;oldid=prev</id>
		<title>Guillem: Guillem ha mogut M10/UF1/A06/E1 a ASIX/M10/UF1/A06/E1 sense deixar una redirecció: Crear subnivell ASIX</title>
		<link rel="alternate" type="text/html" href="http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=5108&amp;oldid=prev"/>
		<updated>2020-04-15T11:29:41Z</updated>

		<summary type="html">&lt;p&gt;Guillem ha mogut &lt;a href=&quot;/index.php?title=M10/UF1/A06/E1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;M10/UF1/A06/E1 (encara no existeix)&quot;&gt;M10/UF1/A06/E1&lt;/a&gt; a &lt;a href=&quot;/wiki/ASIX/M10/UF1/A06/E1&quot; title=&quot;ASIX/M10/UF1/A06/E1&quot;&gt;ASIX/M10/UF1/A06/E1&lt;/a&gt; sense deixar una redirecció: Crear subnivell ASIX&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 11:29, 15 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ca&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Cap diferència)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillem</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=819&amp;oldid=prev</id>
		<title>Guillem a 17:47, 7 maig 2018</title>
		<link rel="alternate" type="text/html" href="http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=819&amp;oldid=prev"/>
		<updated>2018-05-07T17:47:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 17:47, 7 maig 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Línia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:M10]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==ASIX M10 UF1==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==ASIX M10 UF1==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Pt61. Cursors===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Pt61. Cursors===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Guillem</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=210&amp;oldid=prev</id>
		<title>Guillem a 17:54, 9 feb 2018</title>
		<link rel="alternate" type="text/html" href="http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=210&amp;oldid=prev"/>
		<updated>2018-02-09T17:54:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;amp;diff=210&amp;amp;oldid=209&quot;&gt;Mostra els canvis&lt;/a&gt;</summary>
		<author><name>Guillem</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=209&amp;oldid=prev</id>
		<title>Guillem: Es crea la pàgina amb «==ASIX M10 UF1== ===Pt61. Cursors=== Guillem Solà i Boeck (host: PC05) ==Enunciat==   ===Solució=== &lt;source lang=&quot;mysqle&quot;&gt; CREATE DEFINER=`root`@`localhost` PROCEDUR...».</title>
		<link rel="alternate" type="text/html" href="http://wiki.lordwektabyte.cat/index.php?title=ASIX/M10/UF1/A06/E1&amp;diff=209&amp;oldid=prev"/>
		<updated>2018-02-09T17:01:24Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «==ASIX M10 UF1== ===Pt61. Cursors=== Guillem Solà i Boeck (host: PC05) ==Enunciat==   ===Solució=== &amp;lt;source lang=&amp;quot;mysqle&amp;quot;&amp;gt; CREATE DEFINER=`root`@`localhost` PROCEDUR...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==ASIX M10 UF1==&lt;br /&gt;
===Pt61. Cursors===&lt;br /&gt;
Guillem Solà i Boeck (host: PC05)&lt;br /&gt;
==Enunciat==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Solució===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;mysqle&amp;quot;&amp;gt;&lt;br /&gt;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ex_cursors`()&lt;br /&gt;
BEGIN&lt;br /&gt;
	DECLARE finalLL INT DEFAULT FALSE;&lt;br /&gt;
	DECLARE llengua VARCHAR(200);&lt;br /&gt;
    DECLARE parlantsLL INT;&lt;br /&gt;
    DECLARE cLlengues CURSOR FOR&lt;br /&gt;
		SELECT DISTINCT Language FROM CountryLanguage ORDER BY Language;&lt;br /&gt;
	    &lt;br /&gt;
    DECLARE CONTINUE HANDLER FOR NOT FOUND SET finalLL = TRUE;&lt;br /&gt;
    &lt;br /&gt;
    OPEN cLlengues;&lt;br /&gt;
    bucleLL:LOOP&lt;br /&gt;
		FETCH cLlengues INTO llengua;&lt;br /&gt;
			IF finalLL THEN LEAVE bucleLL; END IF;&lt;br /&gt;
            &lt;br /&gt;
            SELECT SUM(CountryLanguage.Percentage/100*Country.Population) AS Parlants from CountryLanguage JOIN Country ON CountryLanguage.CountryCode=Country.Code WHERE Language = llengua INTO parlantsLL;&lt;br /&gt;
            SELECT CONCAT(llengua, ' -- ', parlantsLL) AS 'Llengua -- parlants';&lt;br /&gt;
			&lt;br /&gt;
        blocConti:BEGIN&lt;br /&gt;
			DECLARE finalConti INT DEFAULT FALSE;&lt;br /&gt;
			DECLARE continent VARCHAR(200);&lt;br /&gt;
            DECLARE parlantsConti INT;&lt;br /&gt;
			DECLARE cContinent CURSOR FOR&lt;br /&gt;
				SELECT Country.Continent FROM Country JOIN CountryLanguage ON CountryLanguage.CountryCode=Country.Code WHERE CountryLanguage.Language=llengua ORDER BY Country.Continent;&lt;br /&gt;
	    	&lt;br /&gt;
		   DECLARE CONTINUE HANDLER FOR NOT FOUND SET finalConti = TRUE;&lt;br /&gt;
            &lt;br /&gt;
            OPEN cContinent;&lt;br /&gt;
            bucleConti:LOOP&lt;br /&gt;
				FETCH cContinent INTO continent;&lt;br /&gt;
					IF finalConti THEN LEAVE bucleConti; END IF;&lt;br /&gt;
                &lt;br /&gt;
                SELECT SUM(CountryLanguage.Percentage/100*Country.Population) FROM CountryLanguage JOIN Country ON CountryLanguage.CountryCode=Country.Code WHERE Language = llengua AND Country.Continent = continent INTO parlantsConti;&lt;br /&gt;
&lt;br /&gt;
                SELECT CONCAT('   ',continent, ' -- ', parlantsConti) AS 'Continent -- Parlants';&lt;br /&gt;
                &lt;br /&gt;
                blocPais:BEGIN&lt;br /&gt;
					DECLARE finalPais INT DEFAULT FALSE;&lt;br /&gt;
					DECLARE pais VARCHAR(200);&lt;br /&gt;
                    DECLARE parlantsPais INT;&lt;br /&gt;
					DECLARE cPais CURSOR FOR&lt;br /&gt;
						SELECT Country.Name FROM Country JOIN CountryLanguage ON CountryLanguage.CountryCode=Country.Code &lt;br /&gt;
                        WHERE CountryLanguage.Language=llengua AND Country.Continent=continent &lt;br /&gt;
                        ORDER BY Country.Name;&lt;br /&gt;
					DECLARE CONTINUE HANDLER FOR NOT FOUND SET finalPais = TRUE;&lt;br /&gt;
&lt;br /&gt;
					OPEN cPais;&lt;br /&gt;
		          buclePais:LOOP&lt;br /&gt;
						FETCH cPais INTO pais;&lt;br /&gt;
							IF finalPais THEN LEAVE buclePais; END IF;&lt;br /&gt;
						&lt;br /&gt;
                        &lt;br /&gt;
                        SELECT SUM(CountryLanguage.Percentage/100*Country.Population) FROM CountryLanguage JOIN Country ON CountryLanguage.CountryCode=Country.Code WHERE Language = llengua AND Country.Continent = continent AND Country.Name = pais INTO parlantsPais;&lt;br /&gt;
                        SELECT concat('      ',pais, ' -- ', parlantsPais) AS 'Pais -- Parlants';&lt;br /&gt;
                        &lt;br /&gt;
                        ITERATE buclePais;&lt;br /&gt;
                    END LOOP buclePais;&lt;br /&gt;
            &lt;br /&gt;
                END blocPais;&lt;br /&gt;
                &lt;br /&gt;
                ITERATE bucleConti;&lt;br /&gt;
            END LOOP bucleConti;&lt;br /&gt;
        END blocConti;&lt;br /&gt;
                   &lt;br /&gt;
		ITERATE bucleLL;&lt;br /&gt;
	END LOOP bucleLL;&lt;br /&gt;
    CLOSE cLlengues;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Execució==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;mysqle&amp;quot;&amp;gt;&lt;br /&gt;
MariaDB [world]&amp;gt; call ex_cursors;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Guillem</name></author>
		
	</entry>
</feed>