Search found 67 matches: autoinc

Return to advanced search

Re: "id" for PRIMARY KEY ?

It all depends on our program.
Not on autoinc keys
We will discuss about SQLI after a few days.
by nageswaragunupudi
Thu Jul 27, 2023 3:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: "id" for PRIMARY KEY ?
Replies: 9
Views: 479

Re: Campo autoincremental en DBF

... ADS_MONEY Z; CurDouble,,d HB_FT_CURDOUBLE,8,d ADS_CURDOUBLE T,4; Time HB_FT_TIME,4 ADS_TIME @; T,8; TimeStamp HB_FT_TIMESTAMP,8 ADS_TIMESTAMP +; AutoInc HB_FT_AUTOINC,4 ADS_AUTOINC ^; RowVersion HB_FT_ROWVER,8 ADS_ROWVERSION =; ModTime HB_FT_MODTIME,8 ADS_MODTIME Raw,n HB_FT_STRING,n (+HB_FF_BINARY) ...
by carlos vargas
Tue Nov 01, 2022 11:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campo autoincremental en DBF
Replies: 7
Views: 770

Re: Campo autoincremental en DBF

... then 4 bytes Warning: if someone created tables with such fields i.e. { "I:+", 8, 0 } after my modification which added support for AutoInc flags in all numeric DBF fields then he should update counters manually using DBS_COUNTER flag. New code uses 64bit counters for suuch field ...
by carlos vargas
Thu Oct 27, 2022 10:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campo autoincremental en DBF
Replies: 7
Views: 770

Re: Clase Nativa MySql

... MAX('+cField+') FROM ' + cTable) + 1  It is not as simple as that. Even MySql server does not know the next autoinc value, till the time it actually inserts the record in the table. Between the moment server answers the query "SELECT MAX(fld) FROM table" ...
by nageswaragunupudi
Fri Mar 11, 2022 3:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase Nativa MySql
Replies: 18
Views: 1848

Re: Consulta sobre MySql y autoincrement

Use the new value in the next insert. Example: Autoinc field name is `ID` and the present value is 89. You want to use 101 onwards from the next record onwards. Solution: When you insert the next record: INSERT INTO mytable ID,..... VALUES ( 101, ...
by nageswaragunupudi
Fri Sep 03, 2021 5:04 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre MySql y autoincrement
Replies: 6
Views: 736

Re: Customer .dbf

AutoIncrement field in DBFCDX/DBFNTX is represented as "+". AutoInc fields of DBFCDX/DBFNTX are not compatible with autoincrement field of ADS. Older DBUs and other older DBF maintenance programs may not support ...
by nageswaragunupudi
Wed May 13, 2020 8:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Customer .dbf
Replies: 6
Views: 880

Re: ADS and autoincremental fields

MOISES wrote:Hi,

Is there a way to support it in dbf databases:

Code: Select all  Expand view
{ "ID",         "+",  10,   0 }


Thank you.

This is already supported in DBFCDX.
fwh\samples\customer.dbf has the first field ID as autoinc field.
by nageswaragunupudi
Mon Feb 24, 2020 7:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADS and autoincremental fields
Replies: 6
Views: 1260

MSSQL UPSERT/MERGE

... use this approach with a simple sample. Let us also use the Demo Server provided by FWH. We have a table "STATES" with three fields ID (autoinc), CODE (VarChar(2)) and NAME (VarChar(25)). We have this latest data of CODEs and NAMEs. { { "MT", "MONTANA NEW" ...
by nageswaragunupudi
Thu Aug 08, 2019 9:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSSQL UPSERT/MERGE
Replies: 0
Views: 400

Re: To Nages : Explain me how I must make this tdatabase

Dear Mr. Silvio The basic issue is about AutoInc IDs. Basically the programmer has to decide the logic for this. Available alternatives: 1. Derive the new ID on the basis on RECNO() . This is what is used in your code above. The danger in this ...
by nageswaragunupudi
Sun Mar 03, 2019 3:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages : Explain me how I must make this tdatabase
Replies: 18
Views: 3313

Re: To Nages : Explain me how I must make this tdatabase

Nages, May I ask? You have an AutoInc class. Can it not be used to work the way Mr. Silivo wants? See the message right before yours. Maybe they crossed during posting. Yes, it can be done, but there is still the packing issue that would ...
by James Bott
Sat Mar 02, 2019 6:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages : Explain me how I must make this tdatabase
Replies: 18
Views: 3313

Re: To Nages : Explain me how I must make this tdatabase

Mr. James

May I ask? You have an AutoInc class. Can it not be used to work the way Mr. Silivo wants?
by nageswaragunupudi
Sat Mar 02, 2019 6:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages : Explain me how I must make this tdatabase
Replies: 18
Views: 3313

FWH 19.01: Recycling Deleted Records

... TDataRow() and TDatabase() are compatible with this feature. Depending on the setting, both recycle records in the sameway. Note: Value of the autoinc field is not changed when recycling the records. Here are two samples using recycling feature, using DBF directly and with TDatabase. In both ...
by nageswaragunupudi
Tue Feb 19, 2019 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 19.01: Recycling Deleted Records
Replies: 6
Views: 1423

Re: to Nages : probl..FW_ArrayToDbf with tdatabase - RESOLVED!!

... are not swapped. You decide whether to include ordine also in the list. If you include ordine in the list, ordine field also is swapped. Note: AutoInc fields are never swapped. Problem ....when you add a record the field ORDINE IS ZERO I revised the program. Please test the revised program. ...
by Silvio.Falconi
Thu Jan 31, 2019 8:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages : probl..FW_ArrayToDbf with tdatabase - RESOLVED!!
Replies: 20
Views: 3305

Re: to Nages : probl..FW_ArrayToDbf with tdatabase - RESOLVED!!

... are not swapped. You decide whether to include ordine also in the list. If you include ordine in the list, ordine field also is swapped. Note: AutoInc fields are never swapped. Problem ....when you add a record the field ORDINE IS ZERO I revised the program. Please test the revised program.
by nageswaragunupudi
Thu Jan 31, 2019 4:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages : probl..FW_ArrayToDbf with tdatabase - RESOLVED!!
Replies: 20
Views: 3305

MariaDB - CREATE TABLE | text, int(11), tinyint

... "N", 4, 0 }, ; { "status", "N", 5, 0 }, ; { "idPrimary", "+", 3, 0 }, ; // '+' : AutoInc Primary Key { "is_paid", "N", 6, 0 } } Thank you in advance Otto
by Otto
Tue Nov 27, 2018 6:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB - CREATE TABLE | text, int(11), tinyint
Replies: 5
Views: 1234
Next

Return to advanced search