Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
116 views

I am working with an Oracle database in which each year's data is stored in different tables. I am not the DBA so I cannot change that. Also, I do not have the permission to consult execution plans or ...
Thomas's user avatar
  • 553
-4 votes
1 answer
96 views

I have this insert query for my MariaDB 10.6.19 database: CREATE TABLE manufacturers ( manufacturers_id int(11) NOT NULL AUTO_INCREMENT key, manufacturers_name varchar(32) unique NOT NULL, ...
Giancarlo's user avatar
  • 433
2 votes
2 answers
108 views

After inserting a single row of data into a table (always a single row), I'd like to return to the application code the relative position of that row based on an order by clause. Thus, the application ...
Gary's user avatar
  • 3,226
1 vote
0 answers
64 views

I have built Turbodbc 5.1.2 from source with simdutf 7.3.0, Python 3.11. When trying to insert 150,000 rows of 46 columns to a MySQL 8.0 InnoDB table, Turbodb takes about 190s, compared to 15s with my ...
GBPU's user avatar
  • 684
1 vote
1 answer
121 views

I am experiencing performance issues with an INSERT INTO target_table SELECT ... FROM source_table [WHERE ...] [GROUP BY ...] query in my Apache Doris cluster (version 2.0.8). The SELECT part of the ...
Michael's user avatar
  • 95
-3 votes
1 answer
54 views

I am trying to copy a few fields of video information from one MariaDB table to another using a subquery, decoupling some video info from a classified ads table for later refactoring. video: id (int ...
Palm Boom's user avatar
-4 votes
1 answer
66 views

I have two tables of same structure and want to insert rows from tableA into tableB. The following example works fine: INSERT INTO tableA (uniqueColA, colB, colC) SELECT uniqueColA, colB, colC ...
sweber's user avatar
  • 3,008
-1 votes
2 answers
97 views

I want to do, in exactly one sqlite3 query, an operation that : Checks for the existence of a value in my table (call it V), written in a row indexed by A If V exists and is equal to V_Param (...
Gattouso's user avatar
-1 votes
1 answer
43 views

I have no idea why I can't use an INSERT INTO combined with an WITH statement: drop table if exists testdb.with_insert_into; create table testdb.with_insert_into (id int); with test_data as (select 3 ...
principal-ideal-domain's user avatar
-1 votes
2 answers
149 views

For my Delphi app with an SQLite database I am using TFDQuery, TFDConnection, TDataSource and TDBGrid components. All fields except AllKeys are VARCHAR. AllKeys is TEXT. Everything is connected ...
Dusko Jovic's user avatar
0 votes
1 answer
81 views

I have a recursive procedure in a package in Oracle that traverses through a network. The recursive function runs down the network from the top and then returns values back up as the recursions close. ...
David Klein Ovink's user avatar
0 votes
0 answers
97 views

I'm using Apache Airflow to automate the process of loading data into a PostgreSQL database. My workflow consists of multiple tasks where I fetch customer and order data via API, insert or update ...
giovanni simoes delsoto's user avatar
0 votes
2 answers
162 views

I'm trying to add addition rows to a CTE table using Oracle SQL and I can't quite get it to work. I've read up and it appears using INSERT INTO () is my best option, but I feel I am missing something ...
Jordan Hersey's user avatar
0 votes
0 answers
49 views

I'm trying to perform an INSERT operation with an ON CONFLICT DO UPDATE clause in PostgreSQL. My table contains column names with aliases (e.g., "ITEM_CODE(material_code)"), and I want to ...
Ravi Choudhary's user avatar
0 votes
1 answer
73 views

I have this procedure: declare datafix_id$c varchar2(100) := 'BSS-39038'; datafix_version$c varchar2(100) := '1.0'; description$c varchar(100) := 'BSS-39038 [CBM] Добавить ERT_SERVICE_ID на ...
Nadine241197's user avatar
1 vote
1 answer
74 views

I'm trying to insert a pattern string into the PATTERN_SETTING table in Oracle using the following SQL: INSERT INTO PATTERN_SETTING (ID, NAME, PATTERN) VALUES (30, 'Alphanumeric and symbol', '^[a-zA-...
Garry's user avatar
  • 21
0 votes
0 answers
74 views

I am making columns immutable using BEFORE triggers and my current function works fine to protect columns from UPDATE, but I am having some trouble with INSERT. Basically the problem is that my ...
user23968581's user avatar
4 votes
2 answers
128 views

I have a table that has missing information that needs to be inserted with very specific conditions. However, I am unsure on how to proceed. I have one table that contains an overall view of ...
Andrew C's user avatar
  • 117
0 votes
1 answer
118 views

I have a Pandas df I created from reading an email attachment. When inserting into a SQL Server table I see the following error for Parameter 6 which is Call Length column: Parameter 6 (""):...
LunaLoveDove's user avatar
0 votes
1 answer
43 views

When using insertInto in AWS s3, the data is initially written to the .spark-staging folder and then moved (fake renaming) to the actual location in batches of 10 files at a time. Moving staging data ...
scalactic's user avatar
0 votes
0 answers
73 views

I've this array of strings: $qLastSS_T 2024-07-08 11:56:32 2024-08-08 12:56:32 2024-09-08 13:56:32 2024-10-08 13:56:32 2024-11-08 15:56:32 2024-12-08 16:56:32 and a SQL table like this: Is it ...
ilRobby's user avatar
  • 113
0 votes
1 answer
52 views

I have a table, say, Product (Id, Name): Id Name 1 'one' 2 'two' 3 'three' I have a new version of data that is needed to update the table, with possible duplicate values. For example: Name 'one' 'two'...
Victor Khotin's user avatar
-1 votes
1 answer
89 views

I need to move some values based on expiration date, but unfortunately because the tables are not one to one in number of records I receive an error message when my query is run. I need SQL to be able ...
tcoady's user avatar
  • 13
1 vote
0 answers
35 views

insert statements in postgres can use CTEs ("with" expressions). These can come either before or after the insert itself. Is there any difference between one style vs the other? For example, ...
Richard Wheeldon's user avatar
-1 votes
2 answers
123 views

I want to prevent inserting data into a table and return 'Error' if 'OrderDate' column is greater than '2021-01-01'. How can I do this by the use of TRIGGER and TRY...CATCH in sql-server v.2019 ...
ArashVN's user avatar

1
2 3 4 5
119