Ver Mensaje Individual
  #6  
Antiguo 17-10-2003
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Cita:
Posteado originalmente por m@r
Lo extraño es que yo realizo ORDER BY por 6 campos distintos y solo en algunos regresa resultados de solo lectura y en otros despues de ordenar puedo editar sin ningun problema.
Quizá esto te ahorre un poco de investigación. Tomado de la ayuda de Delphi (bde32.hlp):

Updateable queries

Single-table queries

Queries that retrieve data from a single table are updatable provided that:
  • There is no DISTINCT key word in the SELECT.
  • Everything in the SELECT clause is a simple column reference or a calculated column, no aggregation is allowed. Calculated columns remain read-only.
  • The table referenced in the FROM clause is an updatable base table.
  • There is no GROUP BY or HAVING clause.
  • There are no subqueries in the statement.
  • There is no ORDER BY clause.

The read-only effect of an ORDER BY clause is negated and the query updatable if the ORDER BY clause uses a single column and there is a dBASE single-column primary or secondary index based on that same field. dBASE compound (expression) indexes will not negate the read-only effect of an ORDER BY clause. A Paradox single- or multi-field primary index will make the query updatable if the ORDER BY uses exactly the same columns (in the same order) as the index. Paradox secondary indexes will not negate the read-only effect of an ORDER BY clause.

Multi-table queries

All queries that join two or more tables will produce a read-only result set.

Calculated fields

For updateable queries with calculated fields, an additional field property identifies a result field as both read-only and calculated. Every call to the BDE function DbiPutField causes recalculation of any dependent fields.
// Saludos
Responder Con Cita