-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 3 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 3 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
putukacaOffline
Location:
Post subject: cara convert data dat ke mysql pake delphi  PostPosted: 23/Nov/2006 22:37
onSkilled


Joined: 21-Sep-2005
Posts: 100

Status: Offline
saya punya data type dat kalo dibuka dengan note pad spt berikut

(urutan kolomnya : tgl,jam,user,kode,jml)
2002/06/04,01:33, 09, 81588596, 1
2002/06/04,01:33, 09, 81588596, 1
2002/06/04,01:33, 09, 81588596, 1
2002/06/04,01:33, 09, 81588596, 1
2002/06/04,01:33, 09, 81644599, 1
2002/06/04,01:33, 09, 81644599, 1
2002/06/04,01:33, 09, 81644599, 1
2002/06/04,01:33, 09, 81593590, 1
2002/06/04,01:33, 09, 81593590, 1
2002/06/04,01:33, 09, 81593590, 1

saya mau transfer file tsb pake delphi (dengan koding)ke mysql gimana
caranya ya?

thank's
yudi
 
 View user's profile Send private message  
Reply with quote Back to top
budi_bungaOffline
Location: Makassar
Post subject:   PostPosted: 24/Nov/2006 09:08
onUber-Skilled


Joined: 24-May-2006
Posts: 347
Location: Makassar
Status: Offline
coba aja pake perintah sql
insert into tabelnya (tgl,jam,user,kode,jml) value (2002/06/04,01:33, 09, 81588596, 1 );
insert into tabelnya (tgl,jam,user,kode,jml) value (2002/06/04,01:33, 09, 81588596, 1 );
dst....
buat didalam variable, kemudian isi variabel tersebut masukkan kedalam query1.sql.add(variabel);
eksekusi deh, kira2 begitulah caranya ...
Coba ja mudah2an berhasil mas ... Laughing Wink

_________________
http://rekso.wordpress.com
http://villaofbali.blogspot.com
http://diamond-car-insurance9.blogspot.com
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
deLogic
Location: Jakarta
Post subject:   PostPosted: 24/Nov/2006 12:56
onMage


Joined: 04-Jul-2005
Posts: 2282
Location: Jakarta
tlg bagi TS (Thread Starter), sesuaikan kategori dengan posting Anda.. masak posting di Vacancy & JobSeeker. Smile

momod... admin, tlg pindahkan ke thread yg sesuai.. dan hapus post saya ini jika sudah dipindahkan.

_________________
.:: Lagi gak pengen pasang signature ::.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
putukacaOffline
Location:
Post subject:   PostPosted: 03/Dec/2006 21:46
onSkilled


Joined: 21-Sep-2005
Posts: 100

Status: Offline
gimana cara baca dat-nya karena data type DAT. singkatnya baca file dat tsb kemudian trasnfer ke DB (saya pake mysql). bisa perjelas caranya ata ada yang bisa bantu
 
 View user's profile Send private message  
Reply with quote Back to top
_lmzOffline
Location: Surabaya
Post subject:   PostPosted: 03/Dec/2006 22:03
onUber-Skilled


Joined: 14-Jul-2006
Posts: 423
Location: Surabaya
Status: Offline
1. buat query dengan parameter yang sesuai -> insert into tabelnya (tgl,jam,user,kode,jml) value (:tgl, :jam, :user, :kode, :jml )
2. baca per baris, pecah jadi kolom-kolom (menggunakan operasi string), dan isi parameter secara sesuai
3. execute query untuk memasukkan ke MySQL

Bagian mana yang kurang jelas? Extension file anda tidak relevan. Bukankah file itu formatnya teks per baris seperti pada post pertama anda?

_________________
Heck, I'll believe anything they want!
 
 View user's profile Send private message  
Reply with quote Back to top
putukacaOffline
Location:
Post subject:   PostPosted: 05/Dec/2006 22:07
onSkilled


Joined: 21-Sep-2005
Posts: 100

Status: Offline
lha emang extensionnya adalah DAT nah data yang saya tampilkan itu ssetelah saya open with dgn notepad (nah kebetulan tampilan dah repi) . idenya adalah seperti import data yang tipe dat itu ke DB. yang saya ga jelas adalah penjelasan yang nomor 2 caranya saya ga tahu.

masih oon nih
 
 View user's profile Send private message  
Reply with quote Back to top
_lmzOffline
Location: Surabaya
Post subject:   PostPosted: 06/Dec/2006 06:11
onUber-Skilled


Joined: 14-Jul-2006
Posts: 423
Location: Surabaya
Status: Offline
Mungkin mirip yang ini? http://delphi-id.org/dpr/index.php?name ... highlight=

Atau mungkin text anda bisa dianggap CSV? CSV itu format umum jadi siapa tahu ada sourcecodenya di internet...

Kalau pakai operasi string ya baca-bacalah dokumentasi fungsi Copy() untuk mengambil sebagian string, dan fungsi Pos() untuk mengambil posisi sebuah karakter dalam string.

_________________
Heck, I'll believe anything they want!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |