09.05.2011, 18:54
So, i heard, that you can use the clause `Key` INTEGER PRIMARY KEY AUTOINCREMENT when creating a table, and that it is more reliable than using SELECT * FROM, but using "SELECT `Key` FROM `Table` WHERE `Bla` = 'Str'" etc.
I heard it is faster to do "SELECT `Key` FROM `Table` WHERE `Bla` = 'Str'" is better than using SELECT * FROM `Table` WHERE `Bla` = 'Str'".
But for example when i use the example with the `Key` sometimes the server crashes.
If code needed, I would like to show.
Sorry for not making it THAT clear, but I want to know the most performance way.
I heard it is faster to do "SELECT `Key` FROM `Table` WHERE `Bla` = 'Str'" is better than using SELECT * FROM `Table` WHERE `Bla` = 'Str'".
But for example when i use the example with the `Key` sometimes the server crashes.
If code needed, I would like to show.
Sorry for not making it THAT clear, but I want to know the most performance way.