Initialisation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
====== Convertir une chaîne de caractères en décimal ======
|
||||
|
||||
{{tag>programmation}}
|
||||
|
||||
Suite à un import, les nombres à virgule (type double) sont au format chaîne de caractères (char).
|
||||
|
||||
Voici une commande à saisir pour transformer une chaîne de caractères en double ou décimal.
|
||||
|
||||
Auparavant, la colonne prix doit être créé de type DECIMAL (7,2)
|
||||
|
||||
<code sql>
|
||||
UPDATE`TABLE 80` set prix=replace(prix2, ',', '.')
|
||||
</code>
|
||||
@@ -0,0 +1,29 @@
|
||||
====== Scripts ======
|
||||
===== Table des matières =====
|
||||
|
||||
<WRAP clear/>
|
||||
|
||||
|
||||
<WRAP group>
|
||||
<WRAP half column>
|
||||
==== Les pages ====
|
||||
|
||||
<nav stacked="true" fade="true">
|
||||
<nspages . -h1 -nbCol=1 -textNS=" " -textPages=" " -simpleList -exclude:cookie: -exclude:user: -exclude:playground: -exclude:[sidebar index start rightsidebar navbar topheader header help pageheader pagefooter legal-notices footer 404]>
|
||||
</nav>
|
||||
</WRAP>
|
||||
|
||||
<WRAP half column>
|
||||
==== Les sous-catégories ====
|
||||
|
||||
<nav stacked="true" fade="true">
|
||||
<nspages . -h1 -nbCol=1 -noPages -subns -textNS=" " -textPages=" " -simpleList -exclude:cookie: -exclude:user: -exclude:playground: -exclude:[sidebar index start rightsidebar navbar topheader header help pageheader pagefooter legal-notices footer 404]>
|
||||
</nav>
|
||||
</WRAP>
|
||||
</WRAP>
|
||||
|
||||
|
||||
|
||||
~~NOTOC~~
|
||||
~~NOCACHE~~
|
||||
|
||||
Reference in New Issue
Block a user