Author:
Michael Morbach
Feb
19

Für mein derzeitiges Vorhaben (ich schreibe einen eigenen Gridview Pager) benötige ich von einer Datenbankanfrage, zusätzlich zu den normalen Abfragedaten, die Information wieviele Datensätze ich insgesamt bekomme bzw. bekommen könnte. Das ist natürlich wichtig, weil ich sonst nicht berechnen kann wieviele Seiten ich insgesamt für diese Anfrage habe. Ich verwende zur Limitierung meiner Anfragedaten den MySql Befehl “LIMIT“. um mehr Speicher und Performace einzusparen. Desweiteren möchten nur die wenigsten Benutzer mehr als 50 Ergebnisse auf einmal sehen. Aber wie kommt man nun an die Gesamtanzahl der Datensätze. wenn die Abfrage eingeschränkt ist ?
Machen wir ein kleines Beispiel :
Wir haben eine Tabelle Benutzer (Benutzer_ID, Benutzername) mit 5000 Datensätzen
Read the rest of this entry »
Filed under:
Databases, MySql
Author:
Michael Morbach
Feb
18
My first blog entry …
My name is Michael, I’m 24 years old and at the time I’m a student of “general informatics” in Cologne – Gummersbach. Currently I study at the 3rd semester out of 6, but the end of the 3rd is near. Today in exactly 26 days there are waiting 5 further exams for me, which will complete the 3rd semester.
Since about 2 years I am together with my girlfriend Anja with who I spent and enjoy most of my free time, who gives my life steadily a sense and with who I enjoy and experienced the best things of my life. My miscellaneous interests are programming common applications (preferred in C#), listening to music (preferred Rock), Fantasy Games (e.g. Warhammer), and of course I love playing computergames since I was young. You may already have noticed I spend a lot of my time in front of the computer, which is a reason for me choosing a job in this direction. What can be better than make a hobby to a job ?
I primarily write this blog for myself because I like to hold down things. I also want to improve my english by writing most of the entries here in German/English. I hope this will help me communicating with people from other countries as well as helping me getting better at my job, because for a programmer it is very important to speak a good english. I also want to educe myself through the programming articles on this page and maybe help other people with my guides and tutorials.
I hope you enjoy your time on my blog and keep following my articles.