Search found 453 matches: primary

Searched query: primary

by cmsoft
Thu Jan 30, 2025 11:24 am
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo Insertar registros a na tabla?
Replies: 17
Views: 30144

Re: Cómo Insertar registros a na tabla?

... IF NOT EXISTS armando ";
+"( `id` INT(10) NOT NULL AUTO_INCREMENT, ";
+"`nombre` VARCHAR(50) NOT NULL,";
+"`orden` INT(10) NOT NULL,";
+"PRIMARY KEY (`id`)) ENGINE=INNODB DEFAULT CHARSET=utf8")
//Inserto lo basico
oCn:Execute("INSERT INTO armando (orden,nombre) VALUES (1,'Manzana'),(2 ...
by xmanuel
Tue Jan 28, 2025 9:26 pm
Forum: FiveWin para Harbour/xHarbour
Topic: HDBC para PostgreSQL
Replies: 2
Views: 586

HDBC para PostgreSQL

... 30 ),
state VARCHAR( 2 ),
zip VARCHAR( 10 ),
hiredate DATE,
married BOOLEAN,
age INTEGER,
salary DECIMAL( 9, 2 ),
notes VARCHAR( 70 ),
PRIMARY KEY ( id )
)

ENDTEXT

cls

msg( "Traspaso de datos..." )

try
oDb := THDbc():new( _DRIVER_ )

oDb:connect( _CONN_STRING_ )
oDb:exec ...
by Antonio Linares
Fri Jan 17, 2025 11:03 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4838

Re: Using new Class TDeepSeek for documenting

... nClrBorder`**
- **Type:** NUMERIC
- **Description:** The border color.

22. **`nClrSepara1`**
- **Type:** NUMERIC
- **Description:** The primary separator color.

23. **`nClrSepara2`**
- **Type:** NUMERIC
- **Description:** The secondary separator color.

24. **`nClrTextHeader ...
by Antonio Linares
Fri Jan 17, 2025 10:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4838

Re: Using new Class TDeepSeek for documenting

... Type**: Constructor
- **Parameters**:
- `nWidth`: The width of the bitmap.
- `nHeight`: The height of the bitmap.
- `nColor`: The primary color of the bitmap.
- `nColor2`: (Optional) The secondary color for creating a gradient effect. If not provided, the bitmap will be a flat color ...
by Antonio Linares
Fri Jan 17, 2025 10:45 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4838

Re: Using new Class TDeepSeek for documenting

... DATA Members**

1. **`hBrush`**
- **Type**: Handle (Numeric)
- **Description**: The handle to the brush object. This is the primary identifier for the brush in the Windows GDI (Graphics Device Interface).

2. **`hBitmap`**
- **Type**: Handle (Numeric)
- **Description**: The ...
by JoséQuintas
Fri Dec 27, 2024 5:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Browse of my ADO Class
Replies: 59
Views: 12782

Re: Browse of my ADO Class

ALL OF THIS POST TOGETHER

Remembering that I use GTWVG as primary library.
This is ONE OF my browse calls, change one column for FIVEWIN:

METHOD GridSelection( nType ) CLASS JPCADASTROClass

LOCAL oTBrowse, cnSQL := ADOLocal()

hb_Default( @nType, 0 )

WITH OBJECT cnSQL
:cSQL := "SELECT ...
by PAUL SIMM
Mon Nov 18, 2024 6:08 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Mysql recover values usaing field names
Replies: 3
Views: 1268

Mysql recover values usaing field names

... DESCRIP` varchar(50) DEFAULT NULL,
`VAL_UNI` float(9,2) DEFAULT NULL,
`VAL_TOT` float(9,2) DEFAULT NULL,
`DIVISA` varchar(3) DEFAULT NULL,
`FECHA` date DEFAULT NULL,
`CATEGORIA` int(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=62706502 DEFAULT CHARSET=latin1;
*/
by Marc Venken
Thu Oct 31, 2024 12:35 pm
Forum: FiveWin for Harbour/xHarbour
Topic: RDS (Remote Desktop) and FW programming
Replies: 10
Views: 1871

Re: RDS (Remote Desktop) and FW programming

... standard installation on a powerful machine like an i7 with 16 GB RAM and an SSD, you already have a solid foundation for an RDS environment. For primary use of an article inventory program, where data traffic is key, you might consider the following optimizations:

1. Network Optimization
QoS ...
by Otto
Tue Oct 29, 2024 7:08 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Adjusting the setup program
Replies: 1
Views: 684

Adjusting the setup program

... visible and independent of the object.
Extensibility: With cargo and data-*, you can store additional metadata that is not necessary for the primary purpose of the element but useful for business logic.
Usage in scripts: This data can be accessed and used in JavaScript (for data-*) and in ...
by Otto
Thu Sep 19, 2024 10:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Video Migration from DBF to SQL (MySQL/MariaDB) Mr. Rao
Replies: 5
Views: 1371

Video Migration from DBF to SQL (MySQL/MariaDB) Mr. Rao

... overhead was significant when data had to travel between machines.
- Centralized control over data integrity, transactions, and consistency was a primary concern in multi-user environments.

Many people in this forum still do this, and that’s simply a design flaw—there are so many better solutions ...
by vilian
Thu Aug 08, 2024 4:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: CreateTable AND PrimaryKey
Replies: 2
Views: 1031

Re: CreateTable AND PrimaryKey

Answering myself :)

I already found out it. Just add "PRI" in the struct.

Eg: aFld := {{"COD","C",3,0,"PRI"},{"NOME","C",30,0}}

oCn:CreateTable("test", aFld), will create the table " test " and set the field " COD " as your primary key.
by Maurizio
Thu Jul 18, 2024 6:55 am
Forum: FiveWin for Harbour/xHarbour
Topic: Dbf/cdx to sql changing
Replies: 53
Views: 7933

Re: Dbf/cdx to sql changing

... servers, improving scalability and availability.
3. Data Integrity
Integrity Constraints: SQL databases support integrity constraints such as primary keys, foreign keys, and unique constraints, ensuring data integrity.
ACID Transactions: SQL databases support transactions that adhere to ACID ...
by Otto
Sat May 18, 2024 9:12 am
Forum: FiveWin para Harbour/xHarbour
Topic: Mod Harbour: ChatGPT Provides Detailed Answers
Replies: 23
Views: 5469

Mod Harbour: ChatGPT Provides Detailed Answers

... to retain the existing syntax and plan for a gradual migration.

However, if flexibility, performance, and long-term maintainability are the primary concerns, switching to pure HTML and modern web technologies would be the better choice.
A hybrid approach could be a sensible compromise ...
by Eroni
Wed Mar 20, 2024 7:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 7561

Re: Question about performance RowSet

... id is autoincrement field

This should work:
oCn:Upsert( "states", nil, { { 0, "KK", "KState" } } )
For Upsert() to work, we need to include primary key also.
My table have 20 fields, but in this part of process I need edit or insert just a few.

But you can use normal Insert like this:
oCn ...
by nageswaragunupudi
Wed Mar 20, 2024 3:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 7561

Re: Question about performance RowSet

... has 3 fields: id, code, name where id is autoincrement field

This should work:
oCn:Upsert( "states", nil, { { 0, "KK", "KState" } } )
For Upsert() to work, we need to include primary key also.

But you can use normal Insert like this:
oCn:Insert( "states", "code,name", { { "KK", "KKKK" } } )