-- Dec 5 In-Class Exercise
CREATE TABLE my_table (
a INT,
b VARCHAR(20),
c CHAR(1)
);
INSERT INTO my_table VALUES (1,”hi”,‘a’), (2,”bye”,’b’), (3,”yo”,’c’), (4,”hello,’d’), (6,"test",'e');
rs = stmt.executeQuery("SELECT * FROM my_table WHERE a > 5");
Output: a:6 b:test c:e
CREATE TABLE my_table (
a INT,
b VARCHAR(20),
c CHAR(1)
);
INSERT INTO my_table VALUES (1,”hi”,‘a’), (2,”bye”,’b’), (3,”yo”,’c’), (4,”hello,’d’), (6,"test",'e');
rs = stmt.executeQuery("SELECT * FROM my_table WHERE a > 5");
Output: a:6 b:test c:e