Changeset 530
- Timestamp:
- 12/20/06 20:34:46 (2 years ago)
- Files:
-
- traduc/branches/bv81x/manuel/array.xml (modified) (3 diffs)
- traduc/trunk/manuel/array.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
traduc/branches/bv81x/manuel/array.xml
r232 r530 118 118 VALUES ('Bill', 119 119 '{10000, 10000, 10000, 10000}', 120 '{{"rendez-vous", "repas"}, {}}'); 120 '{{"rendez-vous", "repas"}, {"rendez-vous"}}'); 121 ERROR: multidimensional arrays must have array expressions with matching dimensions</programlisting> 122 123 Notez que les tableaux à plusieurs dimensions doivent avoir des limites 124 correspondantes pour chaque dimension. Une différence provoque une erreur à 125 l'exécution. 126 127 <programlisting>INSERT INTO sal_emp 128 VALUES ('Bill', 129 '{10000, 10000, 10000, 10000}', 130 '{{"rendez-vous", "repas"}, {"entrainement", "présentation"}}'); 121 131 122 132 INSERT INTO sal_emp 123 133 VALUES ('Carol', 124 134 '{20000, 25000, 25000, 25000}', 125 '{{"rencontre", "repas"}, {"rencontre"}}'); 126 ERROR: multidimensional arrays must have array expressions with matching dimensions</programlisting> 127 128 Notez que les tableaux à plusieurs dimensions doivent avoir des limites 129 correspondantes pour chaque dimension. Une différence provoque une erreur à 130 l'exécution. 131 132 <programlisting>INSERT INTO sal_emp 133 VALUES ('Bill', 134 '{10000, 10000, 10000, 10000}', 135 '{{"rencontre", "repas"}, {"entrainement", "présentation"}}'); 136 137 INSERT INTO sal_emp 138 VALUES ('Carol', 139 '{20000, 25000, 25000, 25000}', 140 '{{"petit-déjeuner", "consulting"}, {"rencontre", "repas"}}');</programlisting> 135 '{{"petit-déjeuner", "consultation"}, {"rendez-vous", "repas"}}');</programlisting> 141 136 </para> 142 137 … … 154 149 nom | paye_par_semaine | planning 155 150 -------+---------------------------+-------------------- 156 Bill | {10000,10000,10000,10000} | {{ren contre,repas},{entrainement,présentation}}157 Carol | {20000,25000,25000,25000} | {{petit-déjeuner,consult ing},{rencontre,repas}}151 Bill | {10000,10000,10000,10000} | {{rendez-vous,repas},{entrainement,présentation}} 152 Carol | {20000,25000,25000,25000} | {{petit-déjeuner,consultation},{rendez-vous,repas}} 158 153 (2 rows)</programlisting> 159 154 </para> … … 170 165 VALUES ('Carol', 171 166 ARRAY[20000, 25000, 25000, 25000], 172 ARRAY[['petit-déjeuner', 'consult ing'], ['rencontre', 'repas']]);</programlisting>167 ARRAY[['petit-déjeuner', 'consultation'], ['rendez-vous', 'repas']]);</programlisting> 173 168 Notez que les éléments du tableau sont des constantes SQL ordinaires ou 174 169 des expressions ; par exemple, les chaînes de caractères littérales sont traduc/trunk/manuel/array.xml
r486 r530 126 126 VALUES ('Bill', 127 127 '{10000, 10000, 10000, 10000}', 128 '{{"ren contre", "repas"}, {"entrainement", "présentation"}}');128 '{{"rendez-vous", "repas"}, {"entrainement", "présentation"}}'); 129 129 130 130 INSERT INTO sal_emp 131 131 VALUES ('Carol', 132 132 '{20000, 25000, 25000, 25000}', 133 '{{"petit-déjeuner", "consult ing"}, {"rencontre", "repas"}}');</programlisting>133 '{{"petit-déjeuner", "consultation"}, {"rendez-vous", "repas"}}');</programlisting> 134 134 </para> 135 135 … … 139 139 nom | paye_par_semaine | planning 140 140 -------+---------------------------+-------------------- 141 Bill | {10000,10000,10000,10000} | {{ren contre,repas},{entrainement,présentation}}142 Carol | {20000,25000,25000,25000} | {{petit-déjeuner,consult ing},{rencontre,repas}}141 Bill | {10000,10000,10000,10000} | {{rendez-vous,repas},{entrainement,présentation}} 142 Carol | {20000,25000,25000,25000} | {{petit-déjeuner,consultation},{rendez-vous,repas}} 143 143 (2 rows)</programlisting> 144 144 </para> … … 155 155 VALUES ('Carol', 156 156 ARRAY[20000, 25000, 25000, 25000], 157 ARRAY[['petit-déjeuner', 'consult ing'], ['rencontre', 'repas']]);</programlisting>157 ARRAY[['petit-déjeuner', 'consultation'], ['rendez-vous', 'repas']]);</programlisting> 158 158 </para> 159 159 <para>

