Posts by Dan Getz • 198 points
5 posts
-
1
votes2
answers6979
viewsA: How do I put autoincrement
An auto-increment column in Postgresql works from the default value, not a special value. Just omit it: CREATE TABLE tbl_cliente ( codigo SERIAL, nome TEXT ); INSERT INTO tbl_cliente (nome) VALUES…
postgresqlanswered Dan Getz 198 -
0
votes1
answer203
viewsA: Why don’t you put it in the database?
It is failing because you are using the incorrect method to run the query (you should use executeUpdate() instead of executeQuery()), and also because the nome and the nascimento as sql code instead…
-
3
votes1
answer75
viewsA: Referencing a table through a string in Lua
Exists the table _G, called the global environment, representing the existing variables: > print(tabelaA[1]) qualquer coisa > print(_G["tabelaA"][1]) qualquer coisa Also, you can always build…
-
0
votes1
answer259
viewsA: Error when compiling a modularized program in c
It is impossible to construct a vector of a type without knowing the size of the type, because the size of the vector is the size of each element multiplied by the number of elements. In structures.…
-
2
votes3
answers220
viewsA: How to build a differentiable for a Generic class?
It may be simpler to use Item.class where it is possible, and pass it to the builder of Generic: public class Generic<E> { ... public Generic(Class<E> entity) { this.entity = entity; } }…