繁体   English   中英

如何删除数据 React Native SQLite

[英]How to Delete Data React Native SQLite

我遇到了一些问题,而且我对本机反应和 SQLite 的事情还是很陌生,但是如果创建方法是这样的,我该如何从数据库中删除数据?

simpanCatatan = async () => {
        const { navigation } = this.props
        const date = new Date()
        const dateNow = date.getDate() + " " + bulan[date.getMonth()] + " " + date.getFullYear()
        await Catatan.create({
          title: this.state.title,
          value: this.state.catatan,
          user_id: this.state.user_id,
          video_id: this.state.idVideo,
          video_name: this.state.namaVideo,
          materi_id: this.state.idMateri,
          created_at:dateNow
        })
        navigation.goBack()
        navigation.state.params.getAllCatatan()        
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM