Count down from 0 to 5 seconds and repeat [closed]

King or Queen-Which piece is which?

How to prevent cables getting intertwined

How "fast" do astronomical events occur?

Print the new site header

Digital signature that is only verifiable by one specific person

What is the precise meaning of "подсел на мак"?

Why swap space doesn't get filesystem check at boot time?

Why was New Asgard established at this place?

How to address players struggling with simple controls?

Is a sequel allowed to start before the end of the first book?

Why "amatus est" instead of "*amavitur"

Co-worker is now managing my team. Does this mean that I'm being demoted?

How can I ping multiple IP addresses at the same time?

In windows systems, is renaming files functionally similar to deleting them?

In a Fish that is not a Fish

How do I become a better writer when I hate reading?

Do details of my undergraduate title matter?

I wish, I yearn, for an answer to this riddle

What is this airplane that sits in front of Barringer High School in Newark, NJ?

Fill the maze with a wall-following Snake until it gets stuck

How do credit card companies know what type of business I'm paying for?

Is there any possible way to get these hearts as Adult Link?

What kind of chart is this?

Operator currying: how to convert f[a,b][c,d] to a+c,b+d?



Count down from 0 to 5 seconds and repeat [closed]







.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question













closed as unclear what you're asking by marcello miorelli, Colin 't Hart, Andriy M, Marco, mustaccio Jun 3 at 14:36


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    May 31 at 14:44






  • 2





    It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

    – jpmc26
    Jun 1 at 9:38











  • "Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

    – John Eisbrener
    Jun 3 at 13:26

















2















What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question













closed as unclear what you're asking by marcello miorelli, Colin 't Hart, Andriy M, Marco, mustaccio Jun 3 at 14:36


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    May 31 at 14:44






  • 2





    It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

    – jpmc26
    Jun 1 at 9:38











  • "Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

    – John Eisbrener
    Jun 3 at 13:26













2












2








2


1






What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question














What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?







sql-server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 31 at 14:37









svisveshsvisvesh

192




192




closed as unclear what you're asking by marcello miorelli, Colin 't Hart, Andriy M, Marco, mustaccio Jun 3 at 14:36


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by marcello miorelli, Colin 't Hart, Andriy M, Marco, mustaccio Jun 3 at 14:36


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1





    Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    May 31 at 14:44






  • 2





    It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

    – jpmc26
    Jun 1 at 9:38











  • "Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

    – John Eisbrener
    Jun 3 at 13:26












  • 1





    Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    May 31 at 14:44






  • 2





    It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

    – jpmc26
    Jun 1 at 9:38











  • "Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

    – John Eisbrener
    Jun 3 at 13:26







1




1





Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

– George.Palacios
May 31 at 14:44





Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

– George.Palacios
May 31 at 14:44




2




2





It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

– jpmc26
Jun 1 at 9:38





It's unclear what you're actually hoping to achieve here. Certainly, you don't want to just show a countdown on the screen or waste CPU cycles. What are you going to do with this countdown? Other tools are probably more appropriate than a database for them.

– jpmc26
Jun 1 at 9:38













"Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

– John Eisbrener
Jun 3 at 13:26





"Count down from 0 to 5"? Do you mean 0, 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1, 0?

– John Eisbrener
Jun 3 at 13:26










2 Answers
2






active

oldest

votes


















7














WaitFor should help you accomplish this.



In your case we can simply pass a DELAY time as below



WAITFOR DELAY '00:00:05';


This will simply wait for 5 seconds, then return to the caller.






share|improve this answer






























    6














    Have you looked into the waitfor delay command? See below example



    while 1=1
    begin
    --do something
    waitfor delay '00:00:05'
    end





    share|improve this answer





























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      7














      WaitFor should help you accomplish this.



      In your case we can simply pass a DELAY time as below



      WAITFOR DELAY '00:00:05';


      This will simply wait for 5 seconds, then return to the caller.






      share|improve this answer



























        7














        WaitFor should help you accomplish this.



        In your case we can simply pass a DELAY time as below



        WAITFOR DELAY '00:00:05';


        This will simply wait for 5 seconds, then return to the caller.






        share|improve this answer

























          7












          7








          7







          WaitFor should help you accomplish this.



          In your case we can simply pass a DELAY time as below



          WAITFOR DELAY '00:00:05';


          This will simply wait for 5 seconds, then return to the caller.






          share|improve this answer













          WaitFor should help you accomplish this.



          In your case we can simply pass a DELAY time as below



          WAITFOR DELAY '00:00:05';


          This will simply wait for 5 seconds, then return to the caller.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 31 at 14:41









          George.PalaciosGeorge.Palacios

          3,219827




          3,219827























              6














              Have you looked into the waitfor delay command? See below example



              while 1=1
              begin
              --do something
              waitfor delay '00:00:05'
              end





              share|improve this answer



























                6














                Have you looked into the waitfor delay command? See below example



                while 1=1
                begin
                --do something
                waitfor delay '00:00:05'
                end





                share|improve this answer

























                  6












                  6








                  6







                  Have you looked into the waitfor delay command? See below example



                  while 1=1
                  begin
                  --do something
                  waitfor delay '00:00:05'
                  end





                  share|improve this answer













                  Have you looked into the waitfor delay command? See below example



                  while 1=1
                  begin
                  --do something
                  waitfor delay '00:00:05'
                  end






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 31 at 14:40









                  kevinnwhatkevinnwhat

                  91319




                  91319













                      Popular posts from this blog

                      Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                      Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                      Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020