Created
July 27, 2020 12:35
-
-
Save Inkimar/294cb6114a5868fd4ff2d8180213a662 to your computer and use it in GitHub Desktop.
copy table with all content, database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table redlist_tmp select * from redlist_2015; |
library(tidyverse)
library(glue)
redlist <- read.csv("rodlistade_arter_tampered_2.csv",header=TRUE);
dat <- select(redlist,'id', 'status_abbrev')
df2 <- redlist %>%
mutate(sql_string = glue("update redlist SET status_abbrev='{status_abbrev}' where id={id}"))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mysql> select * from redlist_2015 where id=102963;