[RESOLVED] copy column in the same table
Good morning all I ' like to copy data in column A to column B without erasing data of column B. I use this code but it it doesn't work properly . Code: INSERT INTO Tbl1(Item2) " & _ " SELECT Item"...
View ArticleHelp required with SQLite syntax (attached db)
Code: Dim cOld As cConnection Set cOld = New cConnection m_CN.AttachDataBase "D:\backupdata.db", "old" m_CN.Execute "UPDATE main.stuff SET " & _...
View ArticleSQL Server constraint on multiple columns
I would like to enforce a constraint on an SQL Server table as follows: Table definition ComputerID autoinc ComputerName varchar(255) Username varchar(255) IsDefault bit ComputerName may have multiple...
View ArticleCreate Database Programatically
am a Visual Basic 2012 learner and this is my first project "Create a simple local database programmatically" I debugged it and the code hasn't any errors I compiled no errors. But, the program doesn't...
View Article[RESOLVED] I need advice on performance and use of "redundant" data SQL...
We have a form in our application that does an "equipment" search. Equipment is items that we sell to a customer. WHen the form loads, it loads all equipment records (135,475 currently) into a table...
View Articleconnecting to mysql remotely
I have a program i wrote that will attach to the Mysql Database on local network it is hard coded. works great I have another computer in different location that will house the database with a static...
View ArticleDatabase real time update display
I am studyng database management in VB. This is my first project and works well. in Form1 I have a DataGridView, a ComboBox, 3 Buttons and 3 TextBoxes to insert, edit and delete the Table fields. Data...
View ArticleSQL Server Change primary key from employee id to a control #
Warning, this question requires some thought... We've had a longstanding problem with one of our database tables that I think the company prez is finally going to let me fix. Long ago before I ever...
View Article[ABANDONED] Chicken and Egg Problem
I have records in a table in one database, and have to move and transform any new ones into a table in a second database. On the face of it, that's not terrible. Most of the transforms are simple and...
View Article[RESOLVED] Hashing Mysql example MySQL gives you. Like to know how its used
https://dev.mysql.com/doc/refman/8.0...on_aes-encrypt About the hashing Mysql example they give. I am trying to understand what 'My Secret Passphrase' represents. And what 'text' represents. And how to...
View Article[RESOLVED] Mysql, is possible to select a column and use that column value in...
Something like this here. SHA2 is a MySQL function. I need to get the salt2 value and apply it in the function to create a hash to compare with another hash. Code: Select salt2,...
View ArticleProblem in Date and parameters
Hi to all: This piece of code, try to extract all dates taht should be >= Date.today, but infornuttely this not happen, and i can't see why! Values in my database: Previsao_Nasc_1_Ovo - 10-05-2024...
View ArticleINSERT INTO … ON DUPLICATE KEY UPDATE statement in MySQL ? with ID primary key?
https://www.machinelearningplus.com/...ists-in-mysql/ I was thinking instead of testing to see if the row exists, and if it does not, as in countID is zero do an insert or countID > 0 do an update,...
View Article[RESOLVED] INSERT INTO … ON DUPLICATE KEY UPDATE statement in MySQL ? with ID...
https://www.machinelearningplus.com/...ists-in-mysql/ I was thinking instead of testing to see if the row exists, and if it does not, as in countID is zero do an insert or countID > 0 do an update,...
View ArticleSQL Server - Permission to create a table but not just any table
There is a table in our database called xtblTaskQueryBill. I have a stored procedure that drops it. I have code in my C# application that creates it and insert rows so that I can call another stored...
View Article[RESOLVED] SQL Server - Permission to create a table but not just any table
There is a table in our database called xtblTaskQueryBill. I have a stored procedure that drops it. I have code in my C# application that creates it and insert rows so that I can call another stored...
View ArticleHow to get the last record of a particular customer instead of total records?
Hi, How to get only the last record of a particular customer when I search with the customer number? I don't want to get all the records with that customer number. When I enter 2 in...
View ArticleCount distinct in group by
This my query to count PR. SELECT PR, PROVINCIA, COUNT(PR) FROM TABELLA GROUP BY PR, PROVINCIA in field PR have a duplicate valute. How to count a distinct PR? Tks Tks
View ArticleRandom card insertion
Hi. This is for later this year but might as well be prepared. We need to issue a couple of million of cards that would be random and the random part to be from a number and up. So for example I have a...
View Article[RESOLVED] Update lochave SET LCNT = 11 WHERE LSC = 'E' and (LOCN1 >= 142 and...
I want to update lcnt depending on vars for locn1 to locn2. This below does not work Table is like a range between locn1 to locn2, which is defined as decimal MariaDB [booksgood]> Update lochave SET...
View Article