Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 45

Thread: SQL 101

  1. #31

    Default Re: SQL 101


    ^yep, absolutely..use DTS..

  2. #32

    Default Re: SQL 101

    Good Adlaw!!!
    Kung naa mangutana about PHP, Apache WebServer, Linux and PostgreSQL, Im here... Hope I can HelP.....

  3. #33

    Default Re: SQL 101

    question lang po...

    unsaon man pag delete sa entry sa ako sql database inig ka abot sa given nga oras

    pananglitan...
    gusto ko mo delete ug isa ka line sa usa ka table inig abot ug 3 hours...

    unsaon man?

    help

  4. #34

    Default Re: SQL 101


    It depends on your system. If your using Unix or other Unix-like system, then you can use the cron utility. If your using Windows, I think you can use Task Scheduler. =)

    [ simon.cpu ]

    Quote Originally Posted by Orgasms
    question lang po...

    unsaon man pag delete sa entry sa ako sql database inig ka abot sa given nga oras

    pananglitan...
    gusto ko mo delete ug isa ka line sa usa ka table inig abot ug 3 hours...

    unsaon man?

    help

  5. #35

    Default Re: SQL 101

    Why not create a program that just check the time elapsed and loops back/or sleeps if the time elapsed is not yet reached.

  6. #36

    Default Re: SQL 101

    Quote Originally Posted by Orgasms
    question lang po...

    unsaon man pag delete sa entry sa ako sql database inig ka abot sa given nga oras

    pananglitan...
    gusto ko mo delete ug isa ka line sa usa ka table inig abot ug 3 hours...

    unsaon man?

    help
    you can follow their suggestions above kung naa sa application-side na siya nga feature. otherwise, pwede ka magbuhat ug job/SQL job nga ang task kay magdelete ug one record sa table sa particular nga database. sa MS SQL sure ko naa na.. don't know with other RDBMS lang hinuon...

  7. #37

    Default Re: SQL 101

    in Oracle you can create a procedure or function to delete a certain record ... and submit it in the built in job ... dbms_jobs which is configurable by time and interval in seconds!
    ALONE:Hated and Punished

  8. #38

    Default Re: SQL 101

    BadDudes, i agree with you bro Oracle can do the job to do it. And also i agree with bisdakgyud and RyoZen just incase your back-end is not Oracle you better make an agent that carry the task you want.

  9. #39

    Default Re: SQL 101


    magbuhat ka og procedure nga mag set xa sa time nga i delete ang entry...
    set the limits diay tood..make sure nga wala xa gigamit as foreign key to other tables....

  10. #40

    Default Re: SQL 101

    Using SQL query string in sybase.. sample code:

    if @sItem_codeFrom <> '' then
    set @sqlItems=string('select x.item, x.company_code, x.SOQty, d.Cwarehouse_code, d.Fwarehouse_code, c.qtyUnit, c.FWstockQty, c.CWstockQty, c.flag into #xItems2 from ((select a.company_code,b.item, sum(b.qty) as SOQty into #xItems from salescontract a left join sc_detail b on a.sc_no=b.sc_no ',@sqlDate,' and b.item between ''',@sItem_codeFrom,''' and ''',@sItem_codeTo,''' group by a.company_code, b.item order by b.item) as x left outer join customer d on x.company_code = d.company_code), stock as c where x.item = c.item and c.flag = ''f'' order by x.item')
    else
    set @sqlItems=string('select x.item, x.company_code, x.SOQty, d.Cwarehouse_code, d.Fwarehouse_code, c.qtyUnit, c.FWstockQty, c.CWstockQty, c.flag into #xItems2 from ((select a.company_code,b.item, sum(b.qty) as SOQty into #xItems from salescontract a left join sc_detail b on a.sc_no=b.sc_no ',@sqlDate,' group by a.company_code, b.item order by b.item) as x left outer join customer d on d.company_code = x.company_code ), stock as c where x.item = c.item and c.flag = ''f'' order by x.item')
    end if;
    // end of sqlItem
    execute immediate @sqlItems;

  11.    Advertisement

Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

 
  1. Guitar 101
    By Carlo Borromeo in forum Music & Radio
    Replies: 74
    Last Post: 11-25-2014, 09:09 PM
  2. .:: Overclocking 101 ::.
    By FK in forum Computer Hardware
    Replies: 1043
    Last Post: 05-27-2008, 07:31 AM
  3. learning (my)sql 101 - B
    By anggwaponi in forum Programming
    Replies: 9
    Last Post: 03-14-2008, 05:56 AM
  4. learning (my)sql 101
    By anggwaponi in forum Programming
    Replies: 16
    Last Post: 02-29-2008, 01:12 PM
  5. SCAM 101 : never give out blank checks
    By SPRINGFIELD_XD_40 in forum Politics & Current Events
    Replies: 14
    Last Post: 06-06-2006, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top