abbrevString = [NSString stringByAbbreviatingNumber:someNumber];
floatString = [NSString stringFromFloat:someFloat];
I have a very simple question. I want to run a loop inside the if statement to get all rows that satisfy the if condition. Since there can be multiple rows with the same data1.getOpeningBankReference(). How would I do that?
For example in data1 there are 100 rows. I want that once it enters the if statement, it will give me all 5 rows as results (assuming there are 5 rows with the same OpeningBankRef) where data.getOpeningBankReference().equals(data1.getOpeningBankReference()) and then exit the if statement.
答案 0 :(得分:0)
Maybe you need your for outside the if and another inside. So you can compare all the rows with your data.getOpeningBankReference()
CREATE TABLE teacher(
teacher_id INT(6) UNSIGNED NOT NULL PRIMARY KEY,
first_name VARCHAR(20) NOT NULL,
middle_initial CHAR(1),
last_name VARCHAR(30) NOT NULL)
}