Skip to content

Commit c55787b

Browse files
Update insertion_in_forms.sql
1 parent b9573bf commit c55787b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql_queries/insertion_in_forms.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ async function insertAllFormData() {
88

99
// 1. Insert into forms
1010
const [formResult] = await connection.execute(
11-
`INSERT INTO forms (
12-
form_type, farmer_name, age, mobile, district, block, panchayat, hamlet,
11+
`INSERT INTO forms (
12+
farmer_name, age, mobile, district, block, panchayat, hamlet,
1313
id_type, id_number, gender, spouse, type_of_households, h_members,
1414
hh_occupation, special_catog, caste, house_owner, type_of_house,
1515
drinking_water, potability, domestic_water, toilet_avail, toilet_cond,
16-
household_education, user_id, created_at, lat, lon, status
17-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
16+
household_education, user_id, created_at, lat, lon, status, form_type
17+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
1818
[2, 'FARMER_NAME', 'AGE', 9876543210, 'DISTRICT', 'BLOCK', 'PANCHAYAT', 'HAMLET',
1919
'ID_TYPE', 'ID_NUMBER', 'GENDER', 'SPOUSE', 'HOUSEHOLD_TYPE', 5,
2020
'OCCUPATION', 'SPECIAL_CAT', 'CASTE', 'OWNER', 'HOUSE_TYPE',

0 commit comments

Comments
 (0)