Questions tagged as 'sql'

2
answers

Generate random name in MySQL - Stored Procedure

Good evening, is there any way to generate random names with stored procedures in MySQL? I have the following table:    ALUNO (id: int [PK], name (varchar (100)), age: int, Cr (float)) I need this table with 10mil entries popular. To gene...
asked by 20.05.2016 / 03:23
0
answers

Get only the final value of the bank

I am using php with pdo to query a database in postgress . Is there any way that when I do query , show the result without having to insert the table name, since the select is unique? select distinct a as origem from b uni...
asked by 23.05.2016 / 17:00
0
answers

How to recompile all Views, procedures and triggers in Firebird?

I need to recompile all Views, procedures and triggers in Firebird, not by IBExpert, but by Delphi XE2, I will pass a SQL, I would like to know how to perform such a procedure.     
asked by 17.05.2016 / 19:16
0
answers

Schedule job sql server 2014

I have a procedure that I would like to execute at every X time. I did the scheduling on the sql agent all right. My question is the following, I need to replicate this procedure in all the bases to be able to use with the command: EXEC sp_MSfo...
asked by 09.06.2016 / 16:17
1
answer

Query between different banks in SQL Server

Given this query: SELECT PontoSecullum4.DBO.funcionarios.N_FOLHA, PontoSecullum4.DBO.funcionarios.NOME, PontoSecullum4.DBO.funcionarios.EMPRESA_ID, 1 [ORIGEM] FROM PontoSecullum4.DBO.funcionarios WHERE 1=1 AND NOT EXISTS( SELECT Cod...
asked by 09.06.2016 / 22:34
1
answer

Customizing datagridview in C #

I'm doing a project and I'm having customization issues in my datagrid, as the information in the two textbox returns in the same datagrid I can not customize the header of the two, but rather just one, does anyone know how to sort it wit...
asked by 13.05.2016 / 01:36
0
answers

Data Conversion

I'm doing a program and would like to know how do I save a field that contains only characters, but just send the code to your bank? I am using two tables to save the data and the field I want to save is the foreign key that would be the code. I...
asked by 06.06.2016 / 00:53
0
answers

insert and update date values in the DB using a makedtextbox C #

Hello, while I was developing a system to manage the records in the DB in error it is happening that when inserting the values the date records are empty and when trying to update the listing of information it gives an error that says that it can...
asked by 05.06.2016 / 18:36
2
answers

Add 2 selects to one, showing the fields

The 1st select shows the following fields: CONCAT - FILIAL - COD. PRODUTO - DESCRICAO - QNTD. VENDAS PUB. 11 - 1 - 1 - PRODUTO 1 - 10 12 - 1 - 2 - PRODUTO 2 - 20 13 - 1 - 3...
asked by 01.05.2016 / 01:27
0
answers

Error inserting into the database

I'm getting an error while trying to insert into the database. See below. <?php define("CMD_CRIAR_POST", 0); define("CMD_BUSCAR_POSTS", 1); define("CMD_EDITAR_POST", 2); define("CMD_EXCLUIR_POST", 3); define("CMD_...
asked by 03.05.2016 / 02:22