Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SqlArray::SetDistinct()
Re: SqlArray::SetDistinct() [message #7411 is a reply to message #7410] Wed, 27 December 2006 23:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Novo wrote on Wed, 27 December 2006 17:45

I'd like to propose to add method SetDistinct() to SqlArray.

Actually, it is a little bit inconvenient to have an SQL statement incorporated into SqlArray. It limits you by letting to use only one table and forces to reimplement all SQL-building API.



Exactly. That is why it is often better to use plain ArrayCtrl Smile

In other words, SqlArray is designed to allow editing data. Distinct breaks this. If you need distinct, you most likely do not want to use SqlArray in the first place.

Using ArrayCtrl for SQL is trivial and very common in SQL apps. Note that you can even use ArrayCtrl as "master" and bind SqlArrays as details.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: SqlArray::Join when a foreign key has more than one field
Next Topic: SqlArray Limit and Offset
Goto Forum:
  


Current Time: Sun Aug 24 08:12:49 CEST 2025

Total time taken to generate the page: 0.04466 seconds