Sunday, August 19, 2018

Re: Data Retrieval from sqlite3

Thank you sir , i got a solution for this 

On Thursday, August 16, 2018 at 5:40:29 PM UTC+5:30, Vikrant Gupta wrote:
Hello Ruban,

Your code may be something like this 

var='d' #input from HTML
Ans=models.objects.get(name=var)
Print(Ans.batch)

By,
Vikrant

On Aug 16, 2018, at 4:30 PM, ruban bharath <rubanbh...@gmail.com> wrote:

Name             batch
a                      one
b                      two
c                      three
d                      four
e                      five

This is my  table

If i entered "d" in the front end (html)

my expected output must be like 

d      four

what is the django sqlite3 query to make run of it please do help me to come out from this ?

Thank you in advance


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e102d8f6-bf73-4d37-b75b-95bc0254a551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9706436b-d83e-4ef1-a1aa-3792cc3c24a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment