Arsip: urutkan tanggal lagi

 
user image
more 18 years ago

brodien

halo lagi pak ... saya punya table field=tanggal,field=urut misal field tanggal=12/12/2005 field urut=20051212 saya mau mengurutkan tanggal yang sebenarnya berpatokan pada field urut dan group by tanggal (krn record dengan tangal sama banyak) klo leawt query gimana ya (select .....group by tanggal,order by urut) atawa gimanalh caranya terserah pada para bosss......... ok makasih boss :oops:
user image
more 18 years ago

fafenail

Klo untuk tampilkan kolom tanggal saja:

select tanggal from table group by  tanggal order by urut
klo dua field itu di tampilkan

select tanggal, urut from table group by tanggal, urut order by urut
user image
more 18 years ago

brodien

cara yang kedua ok boss yang pertama ada error makasih ya...bantuannya.... :lol:
user image
more 18 years ago

brodien

nanya lagi nih pak tentang .mdb kenapa size file .mdb tidak berkurang ya setelah semua record dalam table database .mdb itu di hapus? kasus nya gini misal data base .mdb ku size awal 1.149M setelah table saya isi data menjadi misal 268M selatah semua record dalam table di hapus sizenya tetap 268M tidak berkurang .. makasih ya.......
user image
more 18 years ago

DelphiExpert

Harus di Compact and Repair Database. See Tools | Databases Utilities | Compact and Repair Database... Kalo secara koding ane kagak pernah coba pake metode apa. Ngga' pernah pake access sih hihihihi
user image
more 18 years ago

deLogic

pake ADO ada gak ya untuk compact DB, soalnya lum coba, gak main di access juga, hiihiii.. eh tapi mungkin pake DAO bisa kali..... :)
user image
more 18 years ago

masdi2t

sebenarnya tergantung dari arsitektur si DB Enginenya. tp sebenarnya ada satu perintah SQL yang bisa dipake u/ menghapus tabel sekaligus membebaskan storage yang dipake nya, yaitu: TRUNCATE TABLE <nama_table> perintah Truncate tidak hanya menghapus baris (semua baris) pada tabel tetapi juga membebaskan storage yang dipakenya, sementara perintah Delete (DELETE FROM <nama_table>) hanya akan menghapus baris tanpa membebaskan storage (baris lama hanya ditandai sebagai baris yang boleh ditimpa), mirip konsep TombStone pada sistem operasi semoga bisa membantu
user image
more 18 years ago

brodien

klo pake database nya pake access truncate nya gak bisa ya ..pak..
user image
more 18 years ago

brodien

halo pak saya dapat contoh kayak gini ========= If you works with MS Access database, I sure that time-to-time you needs to compact your database. Of course, very useful to run a some process within own application. In the next code I demonstrates how you can do it: var dao: OLEVariant; begin dao := CreateOleObject('DAO.DBEngine.35'); dao.CompactDatabase('d:\yourDatabaseName.mdb', 'd:\yourNewCompactedDatabaseName.mdb'); end; If you want to remove the old non-compacted database, you can simply to rename the new database file. The MS Access is not very stable database and in network mode you can lose the data. In this case you can try to repair the database. In the next code I demonstrates how you can do it: var dao: OLEVariant; begin dao := CreateOleObject('DAO.DBEngine.35'); dao.RepairDatabase('d:\yourDatabaseName.mdb'); end; If you have the DAO 3.6, you must change the 'DAO.DBEngine.35' string to 'DAO.DBEngine.36'. ========== di run keluar kayak gini [Error] tarikdata.pas(153): Undeclared identifier: 'CreateOleObject' ====== mesti di tambahin apa ya di uses nya makasih...........
user image
more 18 years ago

DelphiExpert

Unit ComObj;
more ...
  • Pages:
  • 1
  • 2
Share to

AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now: https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com