Posts by rafaelaraujobsb • 56 points
5 posts
-
2
votes1
answer243
viewsA: Foreign key with 3 primary keys
To reference a composite primary key would be like this: FOREIGN KEY (ax,bx,cx) REFERENCES tabela_origem(a,b,c)
-
0
votes1
answer155
viewsA: Smallint or int to PK / Primary Key / Primary key?
The two types cited are integer, what changes is how much each type supports. smallint: (2 bytes) -32768 to +32767 (with signal) / 0 to 65535 (without signal) int: (4 bytes) -2147483648 to…
-
0
votes1
answer123
viewsA: Limit items in a dictionary
Do you have more than one opinion per state? For your code will only take the last opinion of a state and keep. To store more than one opinion per state, create a list of values. Example:…
-
0
votes1
answer45
viewsA: vector operation
the . split() it "breaks" the string typed by space that is the default, with that the user type 1 2 and M1 receives the 1 and m2 receives the 2, but they are strings, then use the . map() to…
pythonanswered rafaelaraujobsb 56 -
2
votes2
answers333
viewsA: Python - Detectives and Assassins
You must discover killers, victim and detectives. The program is relatively simple, you only need to heed the printing rules. A basis: • Receber a quantidade de casos. Exemplo: 1,2,3...100 •…
pythonanswered rafaelaraujobsb 56