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).
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.