[Excel] volume generated sql statement

Excel batch generate sql statement

  • The formula used
="update user set name='"& B2 &"',age='"& C2 &"' where c_xm_id='"& A2 &"';"
  • Enter the formula, press Enter generated sql
  • A generation, select the remaining cells
  • Fill down choice
    Here Insert Picture Description
  • Copy the generated sql column
  • New sheet
  • Paste as values

Here Insert Picture Description

  • Now you can excel export to txt format
  • Or directly copy the sql to navicat executed

Here Insert Picture Description

Published 127 original articles · won praise 1163 · Views 280,000 +

Guess you like

Origin blog.csdn.net/qq_43901693/article/details/104339203