Jump to content
Fórum Script Brasil
  • 0

Select Com Duvidas



Pessoal, quero criar um select onde eu consiga pegar visualizar os cadastros do mês anterior...

pensei em colocar:

sql = "Select * From suptec where data = month()-1 and atendimento = 'OK' and operacional = 'OK' and pendencia = false ORDER BY data DESC"

ou algo parecido qm pode me ajudar...

meu outro problema é na hora de cadastrar..porque quero cadastrar dia/mês/ano e hora tudo no mesmo campo posso fazer assim:?

#"& Day() & Month() & Year() & Hour() &"#

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...