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

I am doing a tiny home store overview lists. At the movement sheet I want to sum ONLY the same and previous rows but never mix the results with the future row values. As I use mostly ARRAYFORMULAs I ...
Levente_Agi Szilagyi_Dano's user avatar
0 votes
0 answers
89 views

I have a table 'weekrit' that has a primary key, that consists of a 'startdatum' (date value that is the first day of the week) and a 'ritid' (a number starting with 1 every week) I use a BEFORE ...
Walter Tromp's user avatar
0 votes
0 answers
28 views

Environments OceanBase Community 4.2.1 (MySQL mode) MySQL version 5.7 We're migrating from MySQL 5.7 to OceanBase 4.2.1 (MySQL compatibility mode) and observing different auto-increment behaviors ...
user avatar
0 votes
1 answer
45 views

I have a routine in SAS that runs intraday, periodically updating data in table A. I would like to identify the batch of data by the timestamp column and increment it with each data update throughout ...
Deivid's user avatar
  • 67
0 votes
2 answers
165 views

I'm trying to create a hybrid table in Snowflake using the following syntax: CREATE HYBRID TABLE FOO ( ID NUMBER(10,0) PRIMARY KEY NOT NULL AUTOINCREMENT START 1 INCREMENT 1, NAME VARCHAR(8) ...
user29992109's user avatar
1 vote
1 answer
40 views

I have table orders in an SQLite database: CREATE TABLE orders ( clientId INTEGER NOT NULL, listId INTEGER, exchangeId NOT NULL, marketId NOT NULL, id INTEGER NOT NULL, ...
Alexey Starinsky's user avatar
1 vote
0 answers
152 views

This SQL satatement works, and is what I’m trying to generate: ALTER TABLE `some_entity` ADD `generatedNumber` INT NOT NULL AUTO_INCREMENT, ADD UNIQUE (`generatedNumber`); However I need to do this ...
hreg's user avatar
  • 11
0 votes
0 answers
56 views

I am trying to get the last added or inserted record in the sqlite database/table based on the auto increment "id" Integer, but my app keeps crashing. Here is my Kotlin code. @SuppressLint(&...
ThN's user avatar
  • 3,284
0 votes
2 answers
194 views

I have a DDD setup in C#, linking entities to DB tables. An entity has a configured Id (primary key) that encapsulates a non-negative, non-zero integer (a value object). I have the primary key ...
Keyan's user avatar
  • 1
1 vote
1 answer
45 views

version=5.7.32-log i use mysql statement like these to test. CREATE TABLE test_table ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) ); INSERT INTO ...
zikui zhou's user avatar
1 vote
1 answer
171 views

With Spring Boot 3 JPA (Kotlin), I have an entity with an id property that is auto-generated. Now I have code which converts such an entity to a DTO (and the id is important in that context). How can ...
Hermann.Gruber's user avatar
-3 votes
1 answer
166 views

I have multiple tables for different kinds of objects. However, the ID of every object must be unique not only among objects of the same type but also across all objects of different types. In other ...
ShkiperDesna's user avatar
1 vote
1 answer
68 views

I'm working on inserting data from a Pandas DataFrame into a PostgreSQL table using Python. The table structure is as follows: CREATE TABLE sales ( id BIGINT NOT NULL, -- Primary Key tahun ...
AmaniAli's user avatar
  • 331
0 votes
1 answer
71 views

I need to make some tables which are able to auto-increment unique document names for each month of the year based on the date of each documnet type. I think it will be a good idea to make it as a ...
Lasse Staalung's user avatar
-2 votes
1 answer
135 views

I have a view model class setup like this: using System.ComponentModel.DataAnnotations; namespace Proj1.Models { public class Groups { [Key] public int Id { get; set; } ...
Bob Gatto's user avatar
  • 166
1 vote
2 answers
77 views

I have a "My Quote" template workbook which has a quote number in cell "I1" of the "Quote" sheet. Upon opening that workbook I want to go to another (unopened) "...
Peter's user avatar
  • 11
0 votes
1 answer
419 views

I tried to implement an auto increment on my default interactive grid page by following several tutorials on YouTube, but each tutorial taught differently and none solved my problem, the new line is ...
Diogo Rafael Soares's user avatar
0 votes
1 answer
47 views

I have a class for a "Car" object which I have added several instances of to a Bindinglist attached to a Datagridview. I am trying to make a specific field of this object increment every ...
Saturn's user avatar
  • 13
0 votes
2 answers
322 views

is there a way to create sequence without any gaps in snowflake. I cannot use row number as I am running the updates/inserts multiple times which will end up creating same row numbers 1 to n on every ...
rajalakshmim's user avatar
0 votes
1 answer
89 views

This is the code generated by ef core after we do add-migration migrationBuilder.CreateTable( name: "Provinces", ////schema: "some schema", columns: table => new ...
KoolKabin's user avatar
  • 17.8k
0 votes
0 answers
64 views

1.entity public class SaledData implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; ...
Mark X's user avatar
  • 1
1 vote
2 answers
122 views

In my MariaDB I have two tables project and issue, the issue table contains all issues created for all projects create table if not exists Project( id integer PRIMARY KEY auto_increment, `name` ...
david's user avatar
  • 33
0 votes
1 answer
199 views

I have a laravel pest test that checks a redirect after data is submitted to a controller to create a client. it('redirects to the clients show page', function () { $user = User::factory()->...
FMK's user avatar
  • 1,140
0 votes
1 answer
52 views

I'm using a php gallery script and I need to add numbers (auto increment) in the "alt" field (images). I already tried several options from stackoverflow and unfortunately I didn't succeed. ...
carinho's user avatar
  • 45
0 votes
1 answer
710 views

I have a table in SQL Server. Its PK, ID, is of type INT and is auto-incremented. The task I have is to get this table in a Firebird database (version 4.0.4). Remarks: we have a website that uses this ...
Anthony Voronkov's user avatar
0 votes
1 answer
401 views

We have multilevel array so we are using transformation of multiple map function. In this case how to assign a field ID with incremental value. Input: [ { "productNo": "00011111&...
Magda's user avatar
  • 17
1 vote
1 answer
130 views

I am working on an app to track winter bird feeder counts. I am using ++ to increment and -- to decrement. When I try to increment an existing value, the increment re-starts at zero. For instance, if ...
littleoldlady's user avatar
0 votes
1 answer
94 views

I have 1000 jpg files with file names:1_nb_1_0.0164032559841871, 1_nb_1_20.0611820686609, and I want to rename those 1000 with new names by incrementing two characters such as rename to this name:...
MezRasol's user avatar
0 votes
1 answer
295 views

I am using an AUTOINCREMENT PRIMARY KEY in-luau of a timestamp for ordering purposes in a GROUP BY clause. This is a minimal example to illustrate only: CREATE TABLE Items( ItemId BIGINT ...
sashoalm's user avatar
  • 80.5k
2 votes
1 answer
649 views

I am using a Postgresql database via sqlalchemy orm. The table is really basic: import sqlalchemy as sa from sqlalchemy.orm import Mapped from sqlalchemy.orm import mapped_column class Network(Base): ...
oakca's user avatar
  • 1,588
0 votes
1 answer
68 views

New programming learner here. I am trying to create a table for blood donors, and have the id be automatically incremented upon registering new donors, but sql gives an error around auto_increment as ...
ProgrammingLearner2023's user avatar
-2 votes
1 answer
135 views

I put and did not put AUTOINCREMENT for id in person table as shown below: CREATE TABLE person ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT # ↑↑↑↑↑↑↑↑↑↑↑↑↑ ); CREATE TABLE person ...
Super Kai - Kazuya Ito's user avatar
0 votes
1 answer
346 views

I am currently developing an API for invoices. And I want to create an Invoice table with invoiceNumber field that would be auto incrementing but as a string. Something like this: INV00001 INV00002 ...
Vitalij Gurin's user avatar
0 votes
1 answer
58 views

I would like to create a combined key in an innoDB table that already has an "ID" column with auto incrementing value that works as primary key. Assuming we have the following "...
Alex's user avatar
  • 13
2 votes
0 answers
205 views

There are a number of threads on SO dealing with a similar question, e.g. How to create a unique and incremental ID in a Python Class Auto-incrementing IDs for Class Instances How do you create an ...
Nick's user avatar
  • 3,164
-1 votes
1 answer
77 views

I am not experienced in this area. Can you tell me why autoincrement skips values? This is my table: CREATE TABLE `orders` ( `id` int NOT NULL AUTO_INCREMENT, `product_id` int NOT NULL, `...
beslana's user avatar
4 votes
1 answer
984 views

I created the partitioned table in Postgres 15 with composite primary key: CREATE TABLE T ( id bigserial NOT NULL, date date, ..., PRIMARY KEY(id, date) ) PARTITION BY RANGE (...
user3440012's user avatar
0 votes
1 answer
77 views

I created a table in PostgeSQL with data for a person and marked the column "id" with the type 'SERIAL' as 'primary key', 'not null' CREATE Script: CREATE TABLE people ( id serial NOT NULL,...
Артем Лебідь's user avatar
1 vote
1 answer
526 views

In MySQL you would use this kind of SQL to reset the AUTO INCREMENT counter for a table: ALTER TABLE my_table AUTO_INCREMENT = 200; What is the corresponding XML element to use in Liquibase? I'm ...
Neek's user avatar
  • 7,528
0 votes
1 answer
53 views

I have a field in my model Step=models.IntegerField() I call it normally in the template with the following: {{user.step}} Now I want this field to automatically increase after every year What is ...
Raji Muhammad's user avatar
0 votes
0 answers
94 views

How can I change the value of the ID in a MySQL table, for example, to "9999," while keeping the remaining IDs (1-315) unchanged and ensuring that the next autoincrement value is actually ...
user2144969's user avatar
0 votes
0 answers
44 views

this is my first time asking a question since I cant find any better solutions for my problem. I got a task to make a form by website that uses file_put_contents() for book data library. My code ...
Faisal Wildan H's user avatar
1 vote
2 answers
99 views

I noticed strange MySQL behaviour on projects staging server. Given: create table test_table ( id int auto_increment, name varchar(64) not null, constraint test_table_pk primary ...
Marius's user avatar
  • 55
0 votes
0 answers
190 views

I have Microsoft access database. I have about 1200 records, with attached documents through forms and am generating several reports with it. While doing data entry access just halted and I restarted. ...
Tahir Hussain's user avatar
-1 votes
2 answers
735 views

I have a table which requires unique IDs for each row, and which requires them to be stable if the database is rebuilt (so I can't just use rowid), but does not require that they be unique over the ...
P...'s user avatar
  • 695
0 votes
1 answer
137 views

I want to increment the value of a variable ii, but its value does not change. If I move ii++; before the alert function call, it increases but the value set to #spanstatus is always 0. How do I ...
Hida's user avatar
  • 174
0 votes
1 answer
2k views

I'm starting a new Blazor project using Entity Framework 7 and an existing database. I created a class refering to a existing table from my database. public class IEA_EtatsDemandes { public ...
Valter's user avatar
  • 83
0 votes
1 answer
158 views

I am looking for a solution two have my second primary key column to be auto incremented depending on the first primary key. Think about the following example case to comprehend the aspects of my goal:...
Sercan Samet Savran's user avatar
-1 votes
2 answers
1k views

I'm a beginner in SQL and I tried looking for an answer without any luck. I would like to generate invoice numbers automatically with the following distinctions: I have 2 different structures ...
TheGix's user avatar
  • 130
0 votes
1 answer
2k views

I'm importing tables from Access to SQL Server. The column ID in Access is auto-increment, but in SQL Server I must enter every time the ID. It's important to say that there're records in the imported ...
zaraboy's user avatar
  • 21

1
2 3 4 5
54