Sqlite Help
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
Hello,
Does anyone knows how we get all records from a table even if we don't ask for it?
but our table has many more values
how can we still show them?
Yes the category.name and category.budget are the only one we need to show
Thanks
Dummy1912
Does anyone knows how we get all records from a table even if we don't ask for it?
Code: Select all
as you can see we ask for some existing value from the table category Dim attributes As String = "category.name,category.budget"
Dim whereClause As String = "ledger.Monthid='" & sMonth & "' AND ledger.yearid ='" & sYear & "'"
Dim fromClause As String = "LEFT JOIN category ON ledger.category=category.id" 'we only get 1 value because we asked for it.
Dim empls As SQLiteDataReader = DataBase.executeQuery("SELECT " & attributes & " FROM ledger " & fromClause & " WHERE " & whereClause & " ;")
Code: Select all
but nothing do :('tried
Dim attributes As String = "*,category.name,category.budget"
but our table has many more values
how can we still show them?
Yes the category.name and category.budget are the only one we need to show
Thanks
Dummy1912
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
It should just be
Code: Select all
..to get all records.Dim attributes As String = "*"
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Hello,
must it be that easy
i only get 1 record :(

i only get 1 record :(
Code: Select all
if i only use this part then i get all records Dim attributes As String = "*"
Dim empls As SQLiteDataReader = DataBase.executeQuery("SELECT " & attributes & " FROM category ")
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
Dummy1912 wrote:Hello,That's probably because there is only one record which matches the parameters in you WHERE clause.
must it be that easy
i only get 1 record :(
Code: Select allif i only use this part then i get all recordsDim attributes As String = "*" Dim empls As SQLiteDataReader = DataBase.executeQuery("SELECT " & attributes & " FROM category ")
Hi Un kn0wn
Long time no see
how are you.
Yeah i think you might be right about this part
i will have a look into it
Cheers
Long time no see

how are you.
Yeah i think you might be right about this part
i will have a look into it
Cheers

visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023