| | |
Transfer of data
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 9
Reputation:
Solved Threads: 0
Hii Group,
This is samuel Like to hav a small suggestion from you hope u ppl do.
"I would like to copy dat from one table to another of the same database in a give
timestamp,I mean when system time equals to the feild time then the entire data should
be transfered Will it be possible in MySql? ."
To be more specific:
1.The Tables doesnt have same structure.
Hope it is clear.
So,all the Querie may be simple but please kindly explain me the proccess to do so.
Thanks in Advance.
SAM
This is samuel Like to hav a small suggestion from you hope u ppl do.
"I would like to copy dat from one table to another of the same database in a give
timestamp,I mean when system time equals to the feild time then the entire data should
be transfered Will it be possible in MySql? ."
To be more specific:
1.The Tables doesnt have same structure.
Hope it is clear.
So,all the Querie may be simple but please kindly explain me the proccess to do so.
Thanks in Advance.
SAM
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
MS SQL Syntax (Toggle Plain Text)
SELECT INTO
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
if you need some help post your schema and what the timestamp requirements are
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Oct 2008
Posts: 9
Reputation:
Solved Threads: 0
Hi,
Sorry For the delayed reply.
The functionality db of my appplication is around two tables
both of different structures.
Table1
chedule
Table2:Out
Schedule(id,recipient,Text,TimetoSend)
Out(id,recipient,text,...........)
Ok SO the Table Schedule is populated before and when ever the "Timetosend " equals to that of system time then the selected rows whose feild value(TimeToSend)
should be copied to Table Out
I would like to know how to solve this minor task
when I googled a bit I found "mysql.event" ,Can I Use the same here.... if so please let me know how to do so.
Thanks in Advance.
Sorry For the delayed reply.
The functionality db of my appplication is around two tables
both of different structures.
Table1
cheduleTable2:Out
Schedule(id,recipient,Text,TimetoSend)
Out(id,recipient,text,...........)
Ok SO the Table Schedule is populated before and when ever the "Timetosend " equals to that of system time then the selected rows whose feild value(TimeToSend)
should be copied to Table Out
I would like to know how to solve this minor task
when I googled a bit I found "mysql.event" ,Can I Use the same here.... if so please let me know how to do so.
Thanks in Advance.
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
event i believe is only only available in 5.1.6
select into with my sql is an insert statement with a select
i would suggest timetosend be <= curdate(), you'll never get a match exactly on times most likely unless you are going by date only
select into with my sql is an insert statement with a select
MS SQL Syntax (Toggle Plain Text)
INSERT INTO Out(recipient, Text) SELECT recipient, Text FROM Schedule WHERE TimeToSend = curdate();
i would suggest timetosend be <= curdate(), you'll never get a match exactly on times most likely unless you are going by date only
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Oct 2008
Posts: 9
Reputation:
Solved Threads: 0
Hi, Thanks fo rthe reply right now I odnt have nay problem with my statements..
yes u r right mysql.event is available for 5.1.6 or gretaer than that
I wrote a procedure schedule() in that proc i used the "insert into command " ..
when i created an event using
"create event transfer on schedule every 1 second
do call db.schedule();"
it works fine ... but i have a minor probvlem here ..
when my system reboots .. the event doesnt work automatically ..
yes u r right mysql.event is available for 5.1.6 or gretaer than that
I wrote a procedure schedule() in that proc i used the "insert into command " ..
when i created an event using
"create event transfer on schedule every 1 second
do call db.schedule();"
it works fine ... but i have a minor probvlem here ..
when my system reboots .. the event doesnt work automatically ..
![]() |
Similar Threads
- Transfer data between pages (ASP.NET)
- transfering data from one hard drive to another.... (Storage)
- Technique to Transfer Data files from XP to Vista Using XP Hard Drive (Windows Vista and Windows 7)
- Transfer Data From Pop Up To Main Page (ASP)
- Transfer Data from Pop-up to Main Page (JavaScript / DHTML / AJAX)
- transfer data from an asp .net page into a javasscript script (ASP.NET)
- how to transfer data with my friend on a LAN (Networking Hardware Configuration)
- msql data transer problems (MySQL)
Other Threads in the MS SQL Forum
- Previous Thread: SQL database backup
- Next Thread: Joining two tables
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last autogrowth business connectingtodatabaseinuse count cursor data database dateadd datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday






