For example, assignment of values is between compatible data types, and adding string to an integer.
Por ejemplo, la asignación de valores es entre tipos de datos compatibles, y la adición de cadena a un entero.
Convert a string to an integer. If not possible, use the default value.
Convertir una cadena a entero. Si no es posible, usar el valor por defecto.
Casting a string to an integer follows the same the logic used by the intval function: Returns the integer value of var, using the specified base for the conversion (the default is base 10).
Un valor también puede ser convertido al tipo integer mediante la función intval(). Si un resource es convertido a un integer, el resultado será el número de recurso único asignado al resource por PHP durante la ejecución.
Moreover, it is weakly typed in some of the same ways that Perl is: one can insert a string into an integer column (although SQLite will try to convert the string to an integer first, if the column's preferred type is integer).
Por ejemplo, se puede insertar un string en una columna de tipo entero (a pesar de que SQLite tratará en primera instancia de convertir la cadena en un entero).
You can convert a string to an integer using the built-in parseInt() function.
Moreover, it is weakly typed in some of the same ways that Perl is: one can insert a string into an integer column (although SQLite will try to convert the string to an integer first, if the column's preferred type is integer).
Por ejemplo, se puede insertar un string en una columna de tipo entero (a pesar de que SQLite tratará en primera instancia de convertir la cadena en un entero).
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.