📜  kotlin postgresql - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:33.685000             🧑  作者: Mango

代码示例1
Below is the approach to insert query using PostreSQL for Android

    PreparedStatement st=conn.prepareStatement(”INSERT INTO films (title) ”+”VALUES(?) ;”);
    st.setString(1,”On Stranger Tides”);
    int rows=st.executeUpdate();
    st.close();

Go through this 
    https://www.pgcon.org/2011/schedule/attachments/194_pgcon2011-pgdroid.pdf
for more details.