Posts by Junior Zeh • 31 points
3 posts
-
2
votes1
answer49
viewsQ: I am validating a field of Cpf and need to make a check in the database if this Cpf has already been registered if it brings the message to the user
//verifica cpf válido jQuery.validator.addMethod("verificaCPF", function (value, element) { // tamanho do cpf if (value.length < 11) return false; // retira pontos, virgulas e…
-
0
votes0
answers119
viewsQ: I don’t know how to insert nxn tables
CREATE TABLE pacotes ( id INT IDENTITY(1,1) PRIMARY KEY NOT NULL, nome VARCHAR(100), valor FLOAT, percentual_max_desconto TINYINT, ); CREATE TABLE pontos_turisticos ( id INT IDENTITY(1,1) PRIMARY…
sql-serverasked Junior Zeh 31 -
1
votes1
answer40
viewsQ: I need the name of the package to appear in the history table but the id_package is appearing
public List<HistoricoViagem> ObterTodosParaJSON(string start, string length) { List<HistoricoViagem> historicoViagens = new List<HistoricoViagem>(); SqlCommand command = new…